fixed several runtime errors from client error reports

This commit is contained in:
2026-09-26 00:06:18 +02:00
parent 56a497985b
commit d6130584f2
6 changed files with 39 additions and 10 deletions
@@ -79,6 +79,7 @@ class _FilesUploadDialogState extends State<FilesUploadDialog> {
});
final webdavClient = await WebdavApi.webdav;
if (!mounted) return;
if (!override) {
List<dynamic> result;
@@ -148,6 +149,7 @@ class _FilesUploadDialogState extends State<FilesUploadDialog> {
),
);
if (!mounted) return;
if (replaceFiles != true) {
setState(() {
_resetProgress();
@@ -230,8 +232,8 @@ class _FilesUploadDialogState extends State<FilesUploadDialog> {
uploadetFilePaths.add(fullRemotePath);
}
setState(_resetProgress);
if (!mounted) return;
setState(_resetProgress);
Navigator.of(context).pop();
widget.onUploadFinished(uploadetFilePaths);
}