fix formatId, right panel button style, default windows size (windows,

Linux, no idea about Mac, need to check with xcode)
This commit is contained in:
rustdesk
2022-09-20 19:31:32 +08:00
parent 13fe2164d4
commit 3101c4e119
6 changed files with 40 additions and 33 deletions

View File

@@ -760,8 +760,9 @@ class PermissionManager {
if (isDesktop) {
return Future.value(true);
}
if (!permissions.contains(type))
if (!permissions.contains(type)) {
return Future.error("Wrong permission!$type");
}
return gFFI.invokeMethod("check_permission", type);
}
@@ -769,8 +770,9 @@ class PermissionManager {
if (isDesktop) {
return Future.value(true);
}
if (!permissions.contains(type))
if (!permissions.contains(type)) {
return Future.error("Wrong permission!$type");
}
gFFI.invokeMethod("request_permission", type);
if (type == "ignore_battery_optimizations") {