From 5223cbdc181153e7f5798df74201aef31ddb79e3 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 12 Jun 2025 12:06:39 -0600 Subject: [PATCH] add new NSApplicationDelegate method to deal with warning on macOS Sonoma --- libs/gtkmm2ext/gtkapplication_quartz.mm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/gtkmm2ext/gtkapplication_quartz.mm b/libs/gtkmm2ext/gtkapplication_quartz.mm index 7e0505a716..cab5c7e446 100644 --- a/libs/gtkmm2ext/gtkapplication_quartz.mm +++ b/libs/gtkmm2ext/gtkapplication_quartz.mm @@ -1474,6 +1474,10 @@ namespace Gtk { Gtkmm2ext::Application::instance()->ShouldQuit (); return NSTerminateCancel; } +- (BOOL) applicationSupportsSecureRestorableState:(NSApplication *) app +{ + return YES; +} @end static void