mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-16 19:11:27 +03:00
fix file send stupid bug
This commit is contained in:
@@ -70,6 +70,9 @@ class FileModel extends ChangeNotifier {
|
||||
final _jobResultListener = JobResultListener<Map<String, dynamic>>();
|
||||
|
||||
toggleSelectMode() {
|
||||
if (jobState == JobState.inProgress) {
|
||||
return;
|
||||
}
|
||||
_selectMode = !_selectMode;
|
||||
notifyListeners();
|
||||
}
|
||||
@@ -416,6 +419,7 @@ class FileModel extends ChangeNotifier {
|
||||
|
||||
cancelJob(int id) {
|
||||
FFI.setByName("cancel_job", id.toString());
|
||||
jobReset();
|
||||
}
|
||||
|
||||
changeSortStyle(SortBy sort) {
|
||||
@@ -670,7 +674,7 @@ class PathUtil {
|
||||
return pathUtil.split(path);
|
||||
}
|
||||
|
||||
static String dirname(String path, bool isWindows){
|
||||
static String dirname(String path, bool isWindows) {
|
||||
final pathUtil = isWindows ? windowsContext : posixContext;
|
||||
return pathUtil.dirname(path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user