Make openAppFolder action optional in macOS

Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
Loren Eteval
2025-02-17 14:47:25 +08:00
parent bdedf9f6b4
commit f0e4c7ca31
+12 -5
View File
@@ -275,16 +275,23 @@ class AppMainWindow(AppQMainWindow):
),
]
if PLATFORM == 'Darwin':
openAppFolderAction = [None]
else:
openAppFolderAction = [
AppQSeperator(),
AppQAction(
_('Open Application Folder'),
callback=lambda: self.openApplicationFolder(),
),
]
toolsActions = [
AppQAction(
_('Manage Xray-core Asset File...'),
callback=lambda: self.xrayAssetViewerWindow.show(),
),
AppQSeperator(),
AppQAction(
_('Open Application Folder'),
callback=lambda: self.openApplicationFolder(),
),
*openAppFolderAction,
]
if hasattr(AppQAction, 'setMenu'):