Skip to content

Commit c156c38

Browse files
committed
Fix icon
1 parent 829f965 commit c156c38

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

massivemacro/massivemacro_gui.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,15 +328,15 @@ def init(self):
328328
self.setFixedSize(self.size())
329329

330330
def closeEvent(self, event):
331-
if self.minimize_to_tray.isChecked():
331+
if self.settings.minimize_to_tray:
332332
event.ignore()
333333
self.hide()
334334

335-
if self.tray_notification.isChecked():
335+
if self.settings.tray_notification:
336336
self.tray_icon.showMessage(
337337
"MassiveMacro",
338338
"MassiveMacro was minimized to the system tray",
339-
QSystemTrayIcon.Information,
339+
self.icon,
340340
2000
341341
)
342342

massivemacro_pyinstaller.spec

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ a = Analysis(
1515
noarchive=False
1616
)
1717

18+
for data in a.datas:
19+
if "pyconfig" in data[0]:
20+
a.datas.remove(data)
21+
break
22+
23+
a.datas += [("icon.png", "./icon.png", "Data")]
24+
25+
1826
pyz = PYZ(
1927
a.pure,
2028
a.zipped_data,

0 commit comments

Comments
 (0)