summaryrefslogtreecommitdiff
path: root/schist_desktop_gui/src/main.rs
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-02-12 19:07:31 +0000
committerJoe Carstairs <me@joeac.net>2026-02-12 19:07:31 +0000
commit3c8a428c195da414171bd6e9064f26c4a66ffe61 (patch)
treeb72ae243115d5d9aa82b11d969a6e689301498f8 /schist_desktop_gui/src/main.rs
parent8659e9df22908fb10afb8d949a523d347634e637 (diff)
task-085: upgrade iced 0.13.1 -> 0.14.0
Diffstat (limited to 'schist_desktop_gui/src/main.rs')
-rw-r--r--schist_desktop_gui/src/main.rs4
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")
}