From 868b3462e41b851f181adbc797c8d82036515b2b Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 28 Mar 2021 02:00:41 +0000 Subject: [PATCH] src/main.py: open window before starting bluetooth manager --- src/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.py b/src/main.py index 5290698..3744c22 100644 --- a/src/main.py +++ b/src/main.py @@ -9,8 +9,8 @@ class Application(Gtk.Application): - def __init__(self, manager): - self.manager = manager + def __init__(self): + self.manager = None super().__init__( application_id="org.gnome.siglo", flags=Gio.ApplicationFlags.FLAGS_NONE ) @@ -20,6 +20,7 @@ def do_activate(self): if not win: win = SigloWindow(application=self) win.present() + self.manager = InfiniTimeManager() self.manager.scan_for_infinitime() win.done_scanning(self.manager) @@ -29,6 +30,5 @@ def do_window_removed(self, window): def main(version): - manager = InfiniTimeManager() - app = Application(manager) + app = Application() return app.run(sys.argv)