Skip to content

Commit

Permalink
changed windows start logic
Browse files Browse the repository at this point in the history
  • Loading branch information
SlowNicoFish committed Feb 3, 2024
1 parent ed71687 commit 082a203
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yin_yang/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,9 @@ def systray_icon_clicked(reason: QSystemTrayIcon.ActivationReason):
else:
logger.debug('System tray is unsupported')

window = main_window_connector.MainWindow()
if arguments.minimized:
window.close()
sys.exit(app.exec())
else:
window = main_window_connector.MainWindow()
window.show()
sys.exit(app.exec())
sys.exit(app.exec())

0 comments on commit 082a203

Please sign in to comment.