ui: remove on_back callback from content container

This commit is contained in:
ardocrat
2025-05-30 22:11:16 +03:00
parent acfb5fec1a
commit 0621154902
15 changed files with 91 additions and 150 deletions
+5 -4
View File
@@ -44,11 +44,12 @@ pub struct WalletContent {
}
impl ContentContainer for WalletContent {
fn modal_ids(&self) -> Vec<&'static str> { vec![] }
fn modal_ids(&self) -> Vec<&'static str> {
vec![]
}
fn modal_ui(&mut self, _: &mut egui::Ui, _: &Modal, _: &dyn PlatformCallbacks) {}
fn on_back(&mut self, _: &dyn PlatformCallbacks) -> bool { true }
fn modal_ui(&mut self, _: &mut egui::Ui, _: &Modal, _: &dyn PlatformCallbacks) {
}
fn container_ui(&mut self, ui: &mut egui::Ui, cb: &dyn PlatformCallbacks) {
ui.ctx().request_repaint_after(Duration::from_millis(1000));
@@ -61,10 +61,6 @@ impl ContentContainer for ConnectionSettings {
}
}
fn on_back(&mut self, _: &dyn PlatformCallbacks) -> bool {
true
}
fn container_ui(&mut self, ui: &mut egui::Ui, _: &dyn PlatformCallbacks) {
ui.add_space(2.0);
View::sub_title(ui, format!("{} {}", GLOBE, t!("wallets.conn_method")));