settings: fix snackbar message on cancelling export

This commit is contained in:
2025-07-16 22:43:41 +02:00
parent 39823a0820
commit 100c4ae6cc
2 changed files with 7 additions and 1 deletions

View File

@@ -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 📝

View File

@@ -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 {