ui: exit modal dynamic title
This commit is contained in:
parent
d1398cb4d6
commit
db60717d1b
1 changed files with 2 additions and 1 deletions
|
@ -190,7 +190,7 @@ impl Root {
|
||||||
/// Show exit confirmation modal.
|
/// Show exit confirmation modal.
|
||||||
pub fn show_exit_modal() {
|
pub fn show_exit_modal() {
|
||||||
Modal::new(Self::EXIT_MODAL_ID)
|
Modal::new(Self::EXIT_MODAL_ID)
|
||||||
.title(t!("modal_exit.exit"))
|
.title(t!("modal.confirmation"))
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -240,6 +240,7 @@ impl Root {
|
||||||
} else {
|
} else {
|
||||||
Node::stop(true);
|
Node::stop(true);
|
||||||
modal.disable_closing();
|
modal.disable_closing();
|
||||||
|
Modal::set_title(t!("modal_exit.exit"));
|
||||||
self.show_exit_progress = true;
|
self.show_exit_progress = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue