fix some stupid grammer

This commit is contained in:
rustdesk 2023-03-15 22:44:07 +08:00
parent a3c6ac24a9
commit c3e816feee

View File

@ -412,12 +412,12 @@ class FileController {
} }
job.totalSize = totalSize; job.totalSize = totalSize;
job.fileCount = fileCount; job.fileCount = fileCount;
debugPrint("update receive details:${fd.path}"); debugPrint("update receive details: ${fd.path}");
jobController.jobTable.refresh(); jobController.jobTable.refresh();
} }
} else if (options.value.home.isEmpty) { } else if (options.value.home.isEmpty) {
options.value.home = fd.path; options.value.home = fd.path;
debugPrint("init remote home:${fd.path}"); debugPrint("init remote home: ${fd.path}");
directory.value = fd; directory.value = fd;
} }
} catch (e) { } catch (e) {
@ -449,7 +449,7 @@ class FileController {
includeHidden: showHidden, includeHidden: showHidden,
isRemote: isRemoteToLocal); isRemote: isRemoteToLocal);
debugPrint( debugPrint(
"path:${from.path}, toPath:$toPath, to:${PathUtil.join(toPath, from.name, isWindows)}"); "path: ${from.path}, toPath: $toPath, to: ${PathUtil.join(toPath, from.name, isWindows)}");
} }
} }
@ -674,7 +674,7 @@ class JobController {
jobTable.refresh(); jobTable.refresh();
} }
} catch (e) { } catch (e) {
debugPrint("Failed to tryUpdateJobProgress,evt:${evt.toString()}"); debugPrint("Failed to tryUpdateJobProgress, evt: ${evt.toString()}");
} }
} }
@ -841,7 +841,7 @@ class FileFetcher {
Timer(Duration(seconds: 2), () { Timer(Duration(seconds: 2), () {
tasks.remove(path); tasks.remove(path);
if (c.isCompleted) return; if (c.isCompleted) return;
c.completeError("Failed to read dir,timeout"); c.completeError("Failed to read dir, timeout");
}); });
return c.future; return c.future;
} }
@ -857,7 +857,7 @@ class FileFetcher {
Timer(Duration(seconds: 2), () { Timer(Duration(seconds: 2), () {
tasks.remove(actID); tasks.remove(actID);
if (c.isCompleted) return; if (c.isCompleted) return;
c.completeError("Failed to read dir,timeout"); c.completeError("Failed to read dir, timeout");
}); });
return c.future; return c.future;
} }
@ -881,7 +881,7 @@ class FileFetcher {
completer?.complete(fd); completer?.complete(fd);
} }
} catch (e) { } catch (e) {
debugPrint("tryCompleteJob err :$e"); debugPrint("tryCompleteJob err: $e");
} }
} }
@ -1255,7 +1255,7 @@ class FileDialogEventLoop
event.setOverrideConfirm(_overrideConfirm); event.setOverrideConfirm(_overrideConfirm);
event.setSkip(_skip); event.setSkip(_skip);
debugPrint( debugPrint(
"FileDialogEventLoop: consuming<jobId:${evt.data['id']} overrideConfirm: $_overrideConfirm, skip:$_skip>"); "FileDialogEventLoop: consuming<jobId: ${evt.data['id']} overrideConfirm: $_overrideConfirm, skip: $_skip>");
} }
@override @override