Skip to content

Commit

Permalink
Fix: macos hide_menu (sqzw-x#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
northsea4 committed Feb 27, 2024
1 parent b314755 commit 810eae4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/controllers/main_window/load_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,8 @@ def load_config(self):
if 'hide_menu' in switch_on:
self.Ui.checkBox_hide_menu_icon.setChecked(True)
try:
self.tray_icon.hide()
if hasattr(self, 'tray_icon'):
self.tray_icon.hide()
except:
signal.show_traceback_log(traceback.format_exc())
else:
Expand Down

0 comments on commit 810eae4

Please sign in to comment.