fix: prompt only when changes made

This commit is contained in:
Yashas H Majmudar
2024-03-27 22:06:32 +05:30
parent f3a7865459
commit 017bc4f108
2 changed files with 15 additions and 5 deletions

View File

@ -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(