diff --git a/lib/main.dart b/lib/main.dart index 019ab432..cfbf9dd6 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -64,8 +64,8 @@ class FlwtchState extends State with WindowListener { final GlobalKey navKey = GlobalKey(); Future shutdownDirect(MethodCall call) async { - print(call); - cwtch.Shutdown(); + EnvironmentConfig.debugLog("$call"); + await cwtch.Shutdown(); return Future.value({}); } @@ -194,7 +194,7 @@ class FlwtchState extends State with WindowListener { Future shutdown() async { globalAppState.SetModalState(ModalState.shutdown); - print("shutting down"); + EnvironmentConfig.debugLog("shutting down"); await cwtch.Shutdown(); // Wait a few seconds as shutting down things takes a little time.. {