diff --git a/QtScrcpy/dialog.cpp b/QtScrcpy/dialog.cpp
index 978f936..1651e1f 100644
--- a/QtScrcpy/dialog.cpp
+++ b/QtScrcpy/dialog.cpp
@@ -593,19 +593,13 @@ void Dialog::on_updateNameBtn_clicked()
void Dialog::on_useSingleModeCheck_clicked()
{
if (ui->useSingleModeCheck->isChecked()) {
- ui->configGroupBox->hide();
- ui->adbGroupBox->hide();
- ui->wirelessGroupBox->hide();
- ui->usbGroupBox->hide();
+ ui->rightWidget->hide();
} else {
- ui->configGroupBox->show();
- ui->adbGroupBox->show();
- ui->wirelessGroupBox->show();
- ui->usbGroupBox->show();
+ ui->rightWidget->show();
}
QTimer::singleShot(0, this, [this]() {
- resize(width(), layout()->sizeHint().height());
+ resize(layout()->sizeHint().width(), height());
});
}
diff --git a/QtScrcpy/dialog.ui b/QtScrcpy/dialog.ui
index 2575fea..1e5c829 100644
--- a/QtScrcpy/dialog.ui
+++ b/QtScrcpy/dialog.ui
@@ -6,7 +6,7 @@
0
0
- 1105
+ 1293
419
@@ -38,11 +38,14 @@
-
-
+
0
0
+
+
+
Use Simple Mode
@@ -71,7 +74,7 @@
-
-
+
0
0
@@ -84,7 +87,7 @@
-
-
+
0
0
@@ -125,7 +128,7 @@
-
-
+
0
0
@@ -152,7 +155,7 @@
-
-
+
0
0
@@ -168,7 +171,7 @@
-
-
+
0
0
@@ -181,7 +184,7 @@
-
-
+
0
0
@@ -194,7 +197,7 @@
-
-
+
0
0
@@ -207,7 +210,7 @@
-
-
+
0
0
@@ -245,7 +248,7 @@
-
-
+
0
0
@@ -302,7 +305,7 @@
-
-
+
0
0
@@ -328,7 +331,7 @@
-
-
+
0
0
@@ -354,7 +357,7 @@
-
-
+
0
0
@@ -404,7 +407,7 @@
-
-
+
0
0
@@ -427,7 +430,7 @@
-
-
+
0
0
@@ -490,7 +493,7 @@
-
-
+
0
0
@@ -543,7 +546,7 @@
-
-
+
0
0
@@ -749,7 +752,7 @@
-
-
+
0
0
@@ -971,7 +974,7 @@
-
-
+
0
0
@@ -990,7 +993,7 @@
-
-
+
0
0
@@ -1003,7 +1006,7 @@
-
-
+
0
0
diff --git a/QtScrcpy/main.cpp b/QtScrcpy/main.cpp
index 31b501d..f93fd19 100644
--- a/QtScrcpy/main.cpp
+++ b/QtScrcpy/main.cpp
@@ -135,6 +135,7 @@ void installTranslator()
case QLocale::English:
default:
languagePath += "en_US.qm";
+ break;
}
translator.load(languagePath);