settings: fix snackbar message on cancelling export
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
- Remove duplicate date separators in the history page.
|
||||
- Don't allow users to search for the `On:` and `Kun:` labels on the kanji result page.
|
||||
- Strip leading and trailing whitespace from search queries.
|
||||
- Fix a bug where cancelling an export would print a misleading status message.
|
||||
|
||||
## Other 📝
|
||||
|
||||
|
||||
@@ -99,7 +99,12 @@ class _SettingsViewState extends State<SettingsView> {
|
||||
);
|
||||
|
||||
if (!context.mounted) return;
|
||||
showSnackbar(context, 'Exported data to $saveFile');
|
||||
|
||||
if (saveFile == null) {
|
||||
showSnackbar(context, 'Export cancelled');
|
||||
} else {
|
||||
showSnackbar(context, 'Exported data to $saveFile');
|
||||
}
|
||||
}
|
||||
|
||||
Future<void> importHandler(context) async {
|
||||
|
||||
Reference in New Issue
Block a user