ui: exit modal dynamic title

This commit is contained in:
ardocrat 2024-05-04 17:02:21 +03:00
parent d1398cb4d6
commit db60717d1b

View file

@ -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;
}
});