From f0e4c7ca31da2f26204d338246bd230e66801853 Mon Sep 17 00:00:00 2001 From: Loren Eteval Date: Mon, 17 Feb 2025 14:47:25 +0800 Subject: [PATCH] Make openAppFolder action optional in macOS Signed-off-by: Loren Eteval --- Furious/Window/AppMainWindow.py | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Furious/Window/AppMainWindow.py b/Furious/Window/AppMainWindow.py index 9970b632..3288bf08 100644 --- a/Furious/Window/AppMainWindow.py +++ b/Furious/Window/AppMainWindow.py @@ -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'):