From 22e9bf8b4b84911753d1d392447c07ac5cc95fde Mon Sep 17 00:00:00 2001 From: ardocrat Date: Thu, 18 Apr 2024 22:07:21 +0300 Subject: [PATCH] ui: fix wallet list update at single panel mode --- src/gui/views/wallets/content.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gui/views/wallets/content.rs b/src/gui/views/wallets/content.rs index 241c432..3e293f8 100644 --- a/src/gui/views/wallets/content.rs +++ b/src/gui/views/wallets/content.rs @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +use std::time::Duration; use egui::{Align, Id, Layout, Margin, RichText, Rounding, ScrollArea, Widget}; use crate::AppConfig; @@ -219,6 +220,10 @@ impl WalletsContent { ..Default::default() }) .show_inside(ui, |ui| { + // Update ui after 1 sec at single panel mode. + if !dual_panel { + ui.ctx().request_repaint_after(Duration::from_millis(1000)); + } // Show list of wallets. self.wallet_list_ui(ui, dual_panel, cb); });