antler119 / system_tray

A Flutter package that makes it easy to customize and work with your Flutter desktop app's system tray.
MIT License
214 stars 51 forks source link

macos: hide quits the app #10

Closed sgehrman closed 3 years ago

sgehrman commented 3 years ago

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.

sgehrman commented 3 years ago

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 } }