temporarily removed system tray check

This commit is contained in:
Rinaldus 2015-11-12 17:39:44 +03:00
parent 2093b1173e
commit da66d607e1
1 changed files with 5 additions and 4 deletions

View File

@ -195,10 +195,11 @@ class Thread(QThread):
if __name__ == '__main__': if __name__ == '__main__':
import sys import sys
app = QApplication(sys.argv) app = QApplication(sys.argv)
if not QSystemTrayIcon.isSystemTrayAvailable(): # Some DE are not response adequately on it, trying to ignore tray check
QMessageBox.critical(None, "Mail notifier", # if not QSystemTrayIcon.isSystemTrayAvailable():
"I couldn't detect any system tray on this system.") # QMessageBox.critical(None, "Mail notifier",
sys.exit(1) # "I couldn't detect any system tray on this system.")
# sys.exit(1)
QApplication.setQuitOnLastWindowClosed(False) QApplication.setQuitOnLastWindowClosed(False)
window = Window() window = Window()
if SettingsExist(): if SettingsExist():