mirror of
https://github.com/foss42/apidash.git
synced 2025-05-28 04:08:39 +08:00
Update app.dart
This commit is contained in:
@ -57,7 +57,8 @@ class _AppState extends ConsumerState<App> with WindowListener {
|
||||
bool isPreventClose = await windowManager.isPreventClose();
|
||||
if (isPreventClose) {
|
||||
if (ref.watch(
|
||||
settingsProvider.select((value) => value.promptBeforeClosing)) && ref.watch(hasUnsavedChangesProvider)) {
|
||||
settingsProvider.select((value) => value.promptBeforeClosing)) &&
|
||||
ref.watch(hasUnsavedChangesProvider)) {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (_) => AlertDialog(
|
||||
|
Reference in New Issue
Block a user