From 289b66418b364f04d145452b86f204aae64c5f02 Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:56:38 +0200 Subject: [PATCH] fix(macos): add anchor points for `applicationWillFinishLaunching(_:)` --- macos/ReactTestApp/AppDelegate.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/macos/ReactTestApp/AppDelegate.swift b/macos/ReactTestApp/AppDelegate.swift index 73a7288ec..cbf015d84 100644 --- a/macos/ReactTestApp/AppDelegate.swift +++ b/macos/ReactTestApp/AppDelegate.swift @@ -149,6 +149,8 @@ extension AppDelegate { } func applicationWillFinishLaunching(_: Notification) { + // applicationWillFinishLaunching(_:) [ENABLE_SINGLE_APP_MODE=0] + if Session.shouldRememberLastComponent { rememberLastComponentMenuItem.state = .on } @@ -294,6 +296,8 @@ extension AppDelegate { rootView.frame = frame ?? NSRect(size: WindowSize.defaultSize) window.contentViewController?.view = rootView + // applicationWillFinishLaunching(_:) [ENABLE_SINGLE_APP_MODE=1] + #if DEBUG showReactMenu() #endif // DEBUG