Skip to content

Commit

Permalink
bugfix: update missed app links version of restore from backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Moseco committed Oct 3, 2024
1 parent 3ec9732 commit 7ff17e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ui/views/home/home_viewmodel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ class HomeViewModel extends IndexTrackingViewModel {
// Show confirmation
final response = await _dialogService.showCustomDialog(
variant: DialogType.confirmation,
title: 'Import from backup?',
title: 'Restore from backup?',
description:
'This will merge the current app data with the data from the backup file. Conflicting data will be overwritten by the backup data.',
mainButtonTitle: 'Import',
'This will delete all user data and then import new user data from the selected backup file.',
mainButtonTitle: 'Confirm',
secondaryButtonTitle: 'Cancel',
barrierDismissible: true,
);
Expand All @@ -183,7 +183,7 @@ class HomeViewModel extends IndexTrackingViewModel {
barrierDismissible: false,
);

bool result = await _dictionaryService.importUserData(file.path);
bool result = await _dictionaryService.restoreFromBackup(file.path);

_dialogService.completeDialog(DialogResponse());

Expand Down

0 comments on commit 7ff17e9

Please sign in to comment.