fix: cleanup code and logic fixup

This commit is contained in:
Yashas H Majmudar
2024-03-28 14:25:26 +05:30
parent 0c04ff3343
commit 83c6e42864
3 changed files with 12 additions and 11 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)) && ref.watch(collectionStateNotifierProvider.notifier).changed) {
settingsProvider.select((value) => value.promptBeforeClosing)) && ref.watch(changeMadeProvider)) {
showDialog(
context: context,
builder: (_) => AlertDialog(