antler119 / system_tray

A Flutter package that makes it easy to customize and work with your Flutter desktop app's system tray.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

macos: hide quits the app

sgehrman opened this issue · comments

I'm running the example app on a mac.

hiding the window should just hide the window, but the whole app quits. Is there an xcode setting for this? I'll check.

You should set this to false in your example. Otherwise it's not very useful on macos.

class AppDelegate: FlutterAppDelegate {
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return false. <-- this was true
}
}