Fix app close for macOS in 0.25.0 (#31)
* Deep linking settings * Update web template * Fix template * Fix web template again * Bump dev_dependencies * Add flutter_bootstrap.js * Use project_name_slug variable * web mobile-web-app-capable * externalNativeBuild * Remove externalNativeBuild * serious_python: 0.8.2 * Added sys.argv support * Pass argv * pwa_background_color and pwa_theme_color options * Fix pwa_background_color in template * Fix pwa_background_color again * Set default pwa_background_color * pwa white background * Use pid for sockets * Move setupDesktop() * Update MainFlutterWindow.swift * Rewrite setupDesktop * Use windowManager.setSkipTaskbar * Hide Linux window * Prevent quit on close * FLET_HIDE_APP_ON_START * Default adaptive_icon_background, adaptive_icon_foreground * FLET_APP_CONSOLE variable * Add support for android meta-data * Fix backslash in outLogFilename * Fix rive_common build on Linux * Enable logging * Update AppDelegate.swift * Enable --debug
This commit is contained in:
parent
8bcd4e1ee7
commit
0d7f36b47c
|
|
@ -95,7 +95,7 @@ String appDir = "";
|
|||
Map<String, String> environmentVariables = {};
|
||||
|
||||
void main(List<String> args) async {
|
||||
if (isProduction) {
|
||||
if (!args.contains("--debug")) {
|
||||
// ignore: avoid_returning_null_for_void
|
||||
debugPrint = (String? message, {int? wrapWidth}) => null;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,6 +4,6 @@ import FlutterMacOS
|
|||
@NSApplicationMain
|
||||
class AppDelegate: FlutterAppDelegate {
|
||||
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
|
||||
return false
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue