Skip to content

Commit

Permalink
src/main.py: open window before starting bluetooth manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Mar 28, 2021
1 parent c7a59b0 commit 868b346
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand All @@ -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)

Expand All @@ -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)

0 comments on commit 868b346

Please sign in to comment.