From db60717d1bc5f01e3d1753073b42dff94647c698 Mon Sep 17 00:00:00 2001 From: ardocrat Date: Sat, 4 May 2024 17:02:21 +0300 Subject: [PATCH] ui: exit modal dynamic title --- src/gui/views/root.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/views/root.rs b/src/gui/views/root.rs index febb48f..e6c39e3 100644 --- a/src/gui/views/root.rs +++ b/src/gui/views/root.rs @@ -190,7 +190,7 @@ impl Root { /// Show exit confirmation modal. pub fn show_exit_modal() { Modal::new(Self::EXIT_MODAL_ID) - .title(t!("modal_exit.exit")) + .title(t!("modal.confirmation")) .show(); } @@ -240,6 +240,7 @@ impl Root { } else { Node::stop(true); modal.disable_closing(); + Modal::set_title(t!("modal_exit.exit")); self.show_exit_progress = true; } });