diff --git a/liana-gui/src/app/mod.rs b/liana-gui/src/app/mod.rs index 7a1d2f12..3793ca02 100644 --- a/liana-gui/src/app/mod.rs +++ b/liana-gui/src/app/mod.rs @@ -182,6 +182,15 @@ impl App { ) } + pub fn title(&self) -> String { + if let Some(alias) = &self.wallet.alias { + if !alias.is_empty() { + return format!("- {}", alias); + } + } + String::new() + } + fn set_current_panel(&mut self, menu: Menu) -> Task { self.panels.current_mut().interrupt(); diff --git a/liana-gui/src/main.rs b/liana-gui/src/main.rs index d9435a99..cfb392ed 100644 --- a/liana-gui/src/main.rs +++ b/liana-gui/src/main.rs @@ -135,8 +135,9 @@ async fn ctrl_c() -> Result<(), ()> { impl GUI { fn title(&self) -> String { - match self.state { + match &self.state { State::Installer(_) => format!("Liana v{} Installer", VERSION), + State::App(a) => format!("Liana v{} {}", VERSION, a.title()), _ => format!("Liana v{}", VERSION), } }