fixed several runtime errors from client error reports
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user