diff --git a/Furious/QtFramework/QtGui.py b/Furious/QtFramework/QtGui.py index c3722d8..51b717b 100644 --- a/Furious/QtFramework/QtGui.py +++ b/Furious/QtFramework/QtGui.py @@ -64,6 +64,7 @@ class AppQAction(QTranslatable, SupportThemeChangedCallback, QAction): text, icon=None, menu=None, + useSetMenu=True, useActionGroup=True, checkable=False, checked=False, @@ -91,7 +92,7 @@ class AppQAction(QTranslatable, SupportThemeChangedCallback, QAction): # Some old version PySide6 does not have setMenu method # for QAction. Protect it. Currently only used in SystemTrayIcon - if hasattr(self, 'setMenu'): + if hasattr(self, 'setMenu') and useSetMenu: self.setMenu(menu) if useActionGroup: