From 65e002dc528f3951d39e353b87bc531885a943a6 Mon Sep 17 00:00:00 2001 From: Michael Mallan Date: Fri, 10 Jan 2025 15:39:28 +0000 Subject: [PATCH] refactor: treat as dyn state to easily add others Otherwise, all elements are expected to be `Home`. --- liana-gui/src/app/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liana-gui/src/app/mod.rs b/liana-gui/src/app/mod.rs index a326f361..93cbb4e8 100644 --- a/liana-gui/src/app/mod.rs +++ b/liana-gui/src/app/mod.rs @@ -317,7 +317,7 @@ impl App { let current = &self.panels.current; let daemon = self.daemon.clone(); // These are the panels to update with the cache. - let mut panels = [(&mut self.panels.home, Menu::Home)]; + let mut panels = [(&mut self.panels.home as &mut dyn State, Menu::Home)]; let commands: Vec<_> = panels .iter_mut() .map(|(panel, menu)| {