Fix other issues arising from the migration #12
@ -118,13 +118,13 @@ class WebWindow(QtWidgets.QWidget):
|
|||||||
Create and return the menu for the tray icon
|
Create and return the menu for the tray icon
|
||||||
"""
|
"""
|
||||||
# Create the actions for the menu
|
# Create the actions for the menu
|
||||||
self.restore_action = QtWidgets.QAction('&Restore', self)
|
self.restore_action = QtGui.QAction('&Restore', self)
|
||||||
self.restore_action.triggered.connect(self._restore_window)
|
self.restore_action.triggered.connect(self._restore_window)
|
||||||
self.minimize_action = QtWidgets.QAction('Mi&nimize', self)
|
self.minimize_action = QtGui.QAction('Mi&nimize', self)
|
||||||
self.minimize_action.triggered.connect(self.close)
|
self.minimize_action.triggered.connect(self.close)
|
||||||
self.maximize_action = QtWidgets.QAction('Ma&ximize', self)
|
self.maximize_action = QtGui.QAction('Ma&ximize', self)
|
||||||
self.maximize_action.triggered.connect(self._maximize_window)
|
self.maximize_action.triggered.connect(self._maximize_window)
|
||||||
self.quit_action = QtWidgets.QAction('&Quit', self)
|
self.quit_action = QtGui.QAction('&Quit', self)
|
||||||
self.quit_action.triggered.connect(self.app.quit)
|
self.quit_action.triggered.connect(self.app.quit)
|
||||||
# Create the menu and add the actions
|
# Create the menu and add the actions
|
||||||
tray_icon_menu = QtWidgets.QMenu(self)
|
tray_icon_menu = QtWidgets.QMenu(self)
|
||||||
|
Loading…
Reference in New Issue
Block a user