mirror of
https://github.com/foss42/apidash.git
synced 2025-05-31 14:23:45 +08:00
fix: prompt only when changes made
This commit is contained in:
@ -57,7 +57,7 @@ class _AppState extends ConsumerState<App> with WindowListener {
|
||||
bool isPreventClose = await windowManager.isPreventClose();
|
||||
if (isPreventClose) {
|
||||
if (ref.watch(
|
||||
settingsProvider.select((value) => value.promptBeforeClosing))) {
|
||||
settingsProvider.select((value) => value.promptBeforeClosing)) && ref.watch(collectionStateNotifierProvider.notifier).changed) {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (_) => AlertDialog(
|
||||
|
Reference in New Issue
Block a user