Skip to content

Commit

Permalink
[fix] Skip first run wizard if tray not available
Browse files Browse the repository at this point in the history
  • Loading branch information
melianmiko committed Oct 14, 2024
1 parent 7f86ff2 commit e9c2470
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions openfreebuds_qt/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,16 @@ async def boot(self):
if float(".".join(QT_VERSION_STR.split(".")[:2])) < 6.7:
self.show_old_qt_warning()

# System tray icon not available
if not self.tray_available:
self.show_no_tray_warning()
self.main_window.show()

# Show UI
self.tray.show()
if not self.config.get("ui", "background", True) or self.args.settings:
self.main_window.show()
if not self.config.get("ui", "first_run_finished", False):

# System tray availability
if not self.tray_available:
self.show_no_tray_warning()
self.main_window.show()
elif not self.config.get("ui", "first_run_finished", False):
OfbQtFirstRunDialog(self).show()
except SystemExit as e:
self.qt_app.exit(e.args[0])
Expand Down

0 comments on commit e9c2470

Please sign in to comment.