aboutsummaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorJoris2022-02-26 22:42:25 +0100
committerJoris2022-02-26 22:42:25 +0100
commit68285db2c187b350bb2b1707071382bd9fbaa2a5 (patch)
treebe382be54bbaffd618af639728939cb88ed8e052 /src/gui
parentf9f49285c5ecc76d3edfb0a54ffab53c2e296d7f (diff)
Give database path from argument
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/mod.rs3
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: &gtk::Application) {