- some refactoring in signal connections in App.__init__()

- fixed issue with conenctiong twice the signals for the File Toolbar on the first execution of the program
This commit is contained in:
Marius Stanciu
2020-11-09 16:40:30 +02:00
parent f9e7892249
commit 4d4735fff2
5 changed files with 207 additions and 152 deletions

View File

@@ -4611,6 +4611,14 @@ class FlatCAMSystemTray(QtWidgets.QSystemTrayIcon):
"""
def __init__(self, app, icon, headless=None, parent=None):
"""
Class that constructs the system tray
:param app: Main Application
:param icon: The used icon in the sys tray
:param headless: Boolean; if it will be used in a headless situation
:param parent:
"""
# QtWidgets.QSystemTrayIcon.__init__(self, icon, parent)
super().__init__(icon, parent=parent)
self.app = app