This commit is contained in:
Feodor Fitsner 2024-11-29 16:40:36 -08:00
commit 810cedd458
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ String appDir = "";
Map<String, String> environmentVariables = {}; Map<String, String> environmentVariables = {};
void main(List<String> args) async { void main(List<String> args) async {
if (isProduction) { if (!args.contains("--debug")) {
// ignore: avoid_returning_null_for_void // ignore: avoid_returning_null_for_void
debugPrint = (String? message, {int? wrapWidth}) => null; debugPrint = (String? message, {int? wrapWidth}) => null;
} }

View File

@ -4,6 +4,6 @@ import FlutterMacOS
@NSApplicationMain @NSApplicationMain
class AppDelegate: FlutterAppDelegate { class AppDelegate: FlutterAppDelegate {
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool { override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return false return true
} }
} }