mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-01 01:47:42 +00:00
43 lines
1.5 KiB
Diff
43 lines
1.5 KiB
Diff
|
From 06cbaff877b0a5fc7e093494ee76eb32df31443f Mon Sep 17 00:00:00 2001
|
||
|
From: tobtoht <tob@featherwallet.org>
|
||
|
Date: Mon, 27 Nov 2023 23:36:07 +0200
|
||
|
Subject: [PATCH] Revert "macOS: Silence warning about supporting secure state
|
||
|
restoration"
|
||
|
|
||
|
This reverts commit 546dae9285fe97defdab73437d6ae2bf19b806d8.
|
||
|
---
|
||
|
.../cocoa/qcocoaapplicationdelegate.mm | 17 -----------------
|
||
|
1 file changed, 17 deletions(-)
|
||
|
|
||
|
diff --git a/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm b/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm
|
||
|
index 581777f240..6e5bcc01af 100644
|
||
|
--- a/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm
|
||
|
+++ b/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm
|
||
|
@@ -346,23 +346,6 @@ QT_USE_NAMESPACE
|
||
|
else
|
||
|
QWindowSystemInterface::handleFileOpenEvent(qurlString);
|
||
|
}
|
||
|
-
|
||
|
-- (BOOL)applicationSupportsSecureRestorableState:(NSApplication *)application
|
||
|
-{
|
||
|
- if (@available(macOS 12, *)) {
|
||
|
- if ([reflectionDelegate respondsToSelector:_cmd])
|
||
|
- return [reflectionDelegate applicationSupportsSecureRestorableState:application];
|
||
|
- }
|
||
|
-
|
||
|
- // We don't support or implement state restorations via the AppKit
|
||
|
- // state restoration APIs, but if we did, we would/should support
|
||
|
- // secure state restoration. This is the default for apps linked
|
||
|
- // against the macOS 14 SDK, but as we target versions below that
|
||
|
- // as well we need to return YES here explicitly to silence a runtime
|
||
|
- // warning.
|
||
|
- return YES;
|
||
|
-}
|
||
|
-
|
||
|
@end
|
||
|
|
||
|
@implementation QCocoaApplicationDelegate (Menus)
|
||
|
--
|
||
|
2.43.0
|
||
|
|