Skip to content

Commit

Permalink
Merge pull request #882 from ImranR98/dev
Browse files Browse the repository at this point in the history
Bugfix
  • Loading branch information
ImranR98 authored Sep 11, 2023
2 parents a43c45f + fdb6eed commit 17b5604
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/providers/apps_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ class AppsProvider with ChangeNotifier {
}
}
notifyListeners();
await exportApps(isAuto: true);
exportApps(isAuto: true);
}

Future<void> removeApps(List<String> appIds) async {
Expand All @@ -938,7 +938,7 @@ class AppsProvider with ChangeNotifier {
}
if (appIds.isNotEmpty) {
notifyListeners();
await exportApps(isAuto: true);
exportApps(isAuto: true);
}
}

Expand Down Expand Up @@ -1100,6 +1100,9 @@ class AppsProvider with ChangeNotifier {
SettingsProvider settingsProvider = sp ?? this.settingsProvider;
var exportDir = await settingsProvider.getExportDir();
if (isAuto) {
if (settingsProvider.autoExportOnChanges != true) {
return null;
}
if (exportDir == null) {
logs.add('Skipping auto-export as dir is not set.');
return null;
Expand Down

0 comments on commit 17b5604

Please sign in to comment.