diff --git a/lib/view/logged_data_screen.dart b/lib/view/logged_data_screen.dart index 611a19d4b..be619f6f6 100644 --- a/lib/view/logged_data_screen.dart +++ b/lib/view/logged_data_screen.dart @@ -102,6 +102,21 @@ class _LoggedDataScreenState extends State { } Future _deleteAllFiles() async { + if (_isLoading) { + return; + } + if (_files.isEmpty) { + ScaffoldMessenger.of(context).showSnackBar( + SnackBar( + content: Text( + appLocalizations.noLoggedData, + style: TextStyle(color: snackBarContentColor), + ), + backgroundColor: snackBarBackgroundColor, + ), + ); + return; + } final confirmed = await showDialog( context: context, builder: (BuildContext context) {