diff options
Diffstat (limited to 'schist_desktop_gui/src/main.rs')
| -rw-r--r-- | schist_desktop_gui/src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/schist_desktop_gui/src/main.rs b/schist_desktop_gui/src/main.rs index a5749d3..3f18452 100644 --- a/schist_desktop_gui/src/main.rs +++ b/schist_desktop_gui/src/main.rs @@ -24,11 +24,11 @@ use crate::{ fn main() -> anyhow::Result<()> { let cache = get_cache().unwrap_or_else(|_| Cache::default()); let config = Config::default(); - iced::application("Schist", Gui::update, Gui::view) + iced::application(move || Gui::new(&cache), Gui::update, Gui::view) .settings(make_settings(&config.clone())) .subscription(gui::subscription) .theme(make_theme) .window(make_window_settings(&config.clone())) - .run_with(move || Gui::new(&cache)) + .run() .context("Failed to run Schist GUI") } |
