diff options
| author | joeac <me@joeac.net> | 2026-02-28 08:50:46 +0000 |
|---|---|---|
| committer | joeac <me@joeac.net> | 2026-02-28 08:50:46 +0000 |
| commit | 342dadaf91093c1ce9c3ad248a2952ed3cde4de6 (patch) | |
| tree | 0546aa27e558c498cbc730a6f1854f11e9fa844b /schist_desktop_gui/src/main.rs | |
| parent | 65596363d43995bf2002d4aa8405d84484f2542b (diff) | |
| parent | f3659bd8e9d5e20528aaa1e0e7c1b206fb0eb31c (diff) | |
Merge pull request 'task-085: view transactions in desktop GUI' (#5) from task-085 into main
Reviewed-on: https://git.joeac.net/joeac/schist/pulls/5
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") } |
