rdp and tcpTunnel use same tabPage

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-09-08 17:22:24 +08:00
parent d939a5ebc6
commit f5dba0f7aa
8 changed files with 20 additions and 18 deletions

View File

@@ -52,7 +52,6 @@ enum DesktopType {
fileTransfer,
cm,
portForward,
rdp,
}
class IconFont {
@@ -572,9 +571,7 @@ void msgBox(
submit() {
dialogManager.dismissAll();
// https://github.com/fufesou/rustdesk/blob/5e9a31340b899822090a3731769ae79c6bf5f3e5/src/ui/common.tis#L263
if (!type.contains("custom") &&
!(desktopType == DesktopType.portForward ||
desktopType == DesktopType.rdp)) {
if (!type.contains("custom") && desktopType != DesktopType.portForward) {
closeConnection();
}
}