- fixed issue with the sys tray icon not hiding after application close

This commit is contained in:
Marius Stanciu
2019-09-18 15:22:45 +03:00
parent cf0e40c318
commit 2f9ad61819
3 changed files with 13 additions and 8 deletions

View File

@@ -2055,14 +2055,6 @@ class FlatCAMGUI(QtWidgets.QMainWindow):
self.lock_toolbar(lock=lock_state)
self.lock_action.triggered[bool].connect(self.lock_toolbar)
# #################################################################
# ####################### SYS TRAY ################################
# #################################################################
self.w = QtWidgets.QWidget()
self.trayIcon = FlatCAMSystemTray(self.app, QtGui.QIcon('share/flatcam_icon32.png'), self.w)
def eventFilter(self, obj, event):
# filter the ToolTips display based on a Preferences setting
if self.general_defaults_form.general_gui_set_group.toggle_tooltips_cb.get_value() is False: