mirror of
https://github.com/foss42/apidash.git
synced 2025-05-29 12:59:58 +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();
|
bool isPreventClose = await windowManager.isPreventClose();
|
||||||
if (isPreventClose) {
|
if (isPreventClose) {
|
||||||
if (ref.watch(
|
if (ref.watch(
|
||||||
settingsProvider.select((value) => value.promptBeforeClosing)) && ref.watch(hasUnsavedChangesProvider)) {
|
settingsProvider.select((value) => value.promptBeforeClosing)) &&
|
||||||
|
ref.watch(hasUnsavedChangesProvider)) {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (_) => AlertDialog(
|
builder: (_) => AlertDialog(
|
||||||
|
Reference in New Issue
Block a user