macosui / macos_ui

Flutter widgets and themes implementing the current macOS design language.
https://macosui.github.io/macos_ui/#/
MIT License
1.79k stars 174 forks source link

close button suddenly not working #491

Closed kwang87 closed 9 months ago

kwang87 commented 9 months ago

The close button (x button) does not work. Pressing the close button hides the app.

create a new simple project and click the Close button, the app close normally.

How should I debug?

kwang87 commented 9 months ago

macos/AppDelegate.swift

@NSApplicationMain class AppDelegate: FlutterAppDelegate { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { return true // << if value false not closed } }