Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import 'dart:async';
import 'dart:io';
import 'dart:math';
import 'dart:ui';

import 'package:coinlib_flutter/coinlib_flutter.dart';
import 'package:compat/compat.dart' as lib_monero_compat;
Expand Down Expand Up @@ -621,6 +622,21 @@ class _MaterialAppWithThemeState extends ConsumerState<MaterialAppWithTheme>
}
}

@override
Future<AppExitResponse> didRequestAppExit() async {
debugPrint("didRequestAppExit called");
if (Platform.isMacOS) {
// On macOS, mwebd fails to shut down, hanging the app on close.
//
// Exiting is a hack fix for this issue.

// await ref.read(pMwebService).shutdown();
// Something like the above would probably be prudent to make.
exit(0);
}
return AppExitResponse.exit;
}

/// should only be called on android currently
Future<void> getOpenFile() async {
// update provider with new file content state
Expand Down
Loading