diff options
author | Joris | 2022-02-26 22:42:25 +0100 |
---|---|---|
committer | Joris | 2022-02-26 22:42:25 +0100 |
commit | 68285db2c187b350bb2b1707071382bd9fbaa2a5 (patch) | |
tree | be382be54bbaffd618af639728939cb88ed8e052 /src/gui | |
parent | f9f49285c5ecc76d3edfb0a54ffab53c2e296d7f (diff) |
Give database path from argument
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/mod.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/mod.rs b/src/gui/mod.rs index a8a025c..c33500b 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -18,7 +18,8 @@ pub fn run(conn: Connection) { let app = gtk::Application::new(Some("me.guyonvarch.calendar"), Default::default()); app.connect_startup(|_| load_style()); app.connect_activate(move |app| build_ui(conn.clone(), app)); - app.run(); + let args: [&str; 0] = []; + app.run_with_args(&args); } fn build_ui(conn: Rc<Connection>, app: >k::Application) { |