1
0

add new tray icon, and activate window in showNormal

This commit is contained in:
ThomasV
2013-10-11 12:24:43 +02:00
parent 7a1feb8e67
commit 4652783cfd
4 changed files with 5 additions and 1 deletions

View File

@@ -127,6 +127,8 @@ class ElectrumWindow(QMainWindow):
if reason == QSystemTrayIcon.DoubleClick:
self.showNormal()
def showNormal(self):
self.setWindowState(self.windowState() & ~QtCore.Qt.WindowMinimized | QtCore.Qt.WindowActive)
def __init__(self, config, network):
QMainWindow.__init__(self)
@@ -137,7 +139,7 @@ class ElectrumWindow(QMainWindow):
self._close_electrum = False
self.lite = None
self.icon = QIcon(':icons/electrum.png')
self.icon = QIcon(':icons/electrum_light_icon.png')
self.tray = QSystemTrayIcon(self.icon, self)
self.tray.setToolTip('Electrum')
self.tray.activated.connect(self.tray_activated)

View File

@@ -17,6 +17,8 @@
<file>icons/status_waiting.png</file>
<file>icons/status_lagging.png</file>
<file>icons/switchgui.png</file>
<file>icons/electrum_light_icon.png</file>
<file>icons/electrum_dark_icon.png</file>
<file>icons/unconfirmed.png</file>
<file>icons/network.png</file>
</qresource>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB