diff --git a/rel/app/macos/Sources/Livebook/Livebook.swift b/rel/app/macos/Sources/Livebook/Livebook.swift index 0e6f5d525..f80dc1af5 100644 --- a/rel/app/macos/Sources/Livebook/Livebook.swift +++ b/rel/app/macos/Sources/Livebook/Livebook.swift @@ -92,8 +92,9 @@ class AppDelegate: NSObject, NSApplicationDelegate { ElixirKit.API.stop() } - func applicationDidBecomeActive(_ aNotification: Notification) { + func applicationShouldHandleReopen(_ sender: NSApplication, hasVisibleWindows flag: Bool) -> Bool { ElixirKit.API.publish("open", "") + return true } func application(_ app: NSApplication, open urls: [URL]) {