Fixed tray icon owner
This commit is contained in:
1 parent
c46ca8b507
commit
953942ca00
1 file changed
+2
-5
+2
-5
@@ -537,10 +537,9 @@ class WorkerThread(QtCore.QThread):
|
|||||||
|
|
||||||
|
|
||||||
class SystemTrayIcon(QtGui.QSystemTrayIcon):
|
class SystemTrayIcon(QtGui.QSystemTrayIcon):
|
||||||
def __init__(self, parent=None):
|
def __init__(self):
|
||||||
if not sys.platform.startswith('darwin') and self.isSystemTrayAvailable():
|
if not sys.platform.startswith('darwin') and self.isSystemTrayAvailable():
|
||||||
QtGui.QSystemTrayIcon.__init__(self, parent)
|
QtGui.QSystemTrayIcon.__init__(self, GUI.icons.programIcon, MW)
|
||||||
self.setIcon(GUI.icons.programIcon)
|
|
||||||
self.activated.connect(self.catchClicks)
|
self.activated.connect(self.catchClicks)
|
||||||
|
|
||||||
def catchClicks(self):
|
def catchClicks(self):
|
||||||
@@ -882,8 +881,6 @@ class KCCGUI(KCC_ui.Ui_KCC):
|
|||||||
event.ignore()
|
event.ignore()
|
||||||
if not GUI.ConvertButton.isEnabled():
|
if not GUI.ConvertButton.isEnabled():
|
||||||
event.ignore()
|
event.ignore()
|
||||||
if not sys.platform.startswith('darwin'):
|
|
||||||
self.tray.hide()
|
|
||||||
self.contentServer.stop()
|
self.contentServer.stop()
|
||||||
self.settings.setValue('settingsVersion', __version__)
|
self.settings.setValue('settingsVersion', __version__)
|
||||||
self.settings.setValue('lastPath', self.lastPath)
|
self.settings.setValue('lastPath', self.lastPath)
|
||||||
|
|||||||
Reference in new issue
Block a user