Fix tray visibility and message reception issues
- Disable sound initialization to prevent hanging
- Add missing import re in utils.py
- Fix settings loading for QSettings
- Update file paths to use PROJECT_ROOT
- Revert to working API paths and listener from commit efdc63e
This commit is contained in:
@@ -12,13 +12,16 @@ class Tray(QtWidgets.QSystemTrayIcon):
|
||||
def __init__(self):
|
||||
super(Tray, self).__init__()
|
||||
|
||||
print(f"System tray available: {self.isSystemTrayAvailable()}")
|
||||
if not self.isSystemTrayAvailable():
|
||||
logger.warning("System tray is not available.")
|
||||
print("System tray is not available.")
|
||||
print(f"System supports messages: {self.supportsMessages()}")
|
||||
if not self.supportsMessages():
|
||||
logger.warning("System does not support notifications.")
|
||||
print("System does not support notifications.")
|
||||
|
||||
self.set_icon_error()
|
||||
self.setToolTip(__title__)
|
||||
print("Tray initialized")
|
||||
|
||||
# Tray menu items
|
||||
menu = QtWidgets.QMenu()
|
||||
|
||||
Reference in New Issue
Block a user