Skip to content

Commit a562464

Browse files
committed
CR feedback - reset to none if tray failed to start
1 parent e1b04cf commit a562464

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/desktop/desktop.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,12 @@ def run_tray(self):
130130
self.tray.run_detached()
131131
except Exception:
132132
logger.error("Error running tray", exc_info=True)
133-
# Tray not starting on MacOS or Windows is critical. Let Linux continue to start the app.
134-
if sys.platform in ["darwin", "Windows", "win32"]:
133+
# Tray not starting on MacOS or Windows is critical.
134+
# Let Linux continue to start the app as tray is more fragmented there and requires system deps.
135+
if sys.platform in ["darwin", "win32"]:
135136
raise
137+
else:
138+
self.tray = None
136139

137140
def close_splash(self):
138141
try:

0 commit comments

Comments
 (0)