Skip to content

Commit

Permalink
refactor: fix toast after backup
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafluri committed Jul 15, 2020
1 parent 5607fa0 commit fb78048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/screens/settings/settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class SettingsScreenView extends WidgetView<SettingsScreen, Settings> {
title: 'Backup',
subtitle: 'Save Backup File',
leading: Icon(Icons.backup),
onTap: () {
BackupService.instance.backup();
onTap: () async {
await BackupService.instance.backup();
state.showToast("Backup file saved");
},
),
Expand Down

0 comments on commit fb78048

Please sign in to comment.