forked from cwtch.im/cwtch-ui
Fix Shutdown Logging
This commit is contained in:
parent
5232e13d95
commit
b2dc292771
|
@ -64,8 +64,8 @@ class FlwtchState extends State<Flwtch> with WindowListener {
|
||||||
final GlobalKey<NavigatorState> navKey = GlobalKey<NavigatorState>();
|
final GlobalKey<NavigatorState> navKey = GlobalKey<NavigatorState>();
|
||||||
|
|
||||||
Future<dynamic> shutdownDirect(MethodCall call) async {
|
Future<dynamic> shutdownDirect(MethodCall call) async {
|
||||||
print(call);
|
EnvironmentConfig.debugLog("$call");
|
||||||
cwtch.Shutdown();
|
await cwtch.Shutdown();
|
||||||
return Future.value({});
|
return Future.value({});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,7 +194,7 @@ class FlwtchState extends State<Flwtch> with WindowListener {
|
||||||
|
|
||||||
Future<void> shutdown() async {
|
Future<void> shutdown() async {
|
||||||
globalAppState.SetModalState(ModalState.shutdown);
|
globalAppState.SetModalState(ModalState.shutdown);
|
||||||
print("shutting down");
|
EnvironmentConfig.debugLog("shutting down");
|
||||||
await cwtch.Shutdown();
|
await cwtch.Shutdown();
|
||||||
// Wait a few seconds as shutting down things takes a little time..
|
// Wait a few seconds as shutting down things takes a little time..
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue