Add toggle to hide system checks

This commit is contained in:
Patrick Nicolas
2025-10-11 19:51:12 +02:00
parent 19d46db554
commit 56a94bfc10
2 changed files with 8 additions and 2 deletions
+3 -2
View File
@@ -46,6 +46,7 @@ Kirigami.ApplicationWindow {
id: settings
property alias first_run: root.first_run
property alias last_run_version: root.last_run_version
property bool show_system_checks: true
}
property bool first_run: true
property string last_run_version
@@ -129,7 +130,7 @@ Kirigami.ApplicationWindow {
// type: Kirigami.MessageType.Warning
type: Kirigami.MessageType.Information
showCloseButton: true
visible: !WivrnServer.capSysNice
visible: settings.show_system_checks && !WivrnServer.capSysNice
actions: [
Kirigami.Action {
text: i18n("Fix it")
@@ -143,7 +144,7 @@ Kirigami.ApplicationWindow {
text: i18n("Firewall may not allow port 9757.")
type: Kirigami.MessageType.Warning
showCloseButton: true
visible: Firewall.needSetup
visible: settings.show_system_checks && Firewall.needSetup
actions: [
Kirigami.Action {
text: i18n("Fix it")
+5
View File
@@ -22,6 +22,7 @@ Kirigami.ScrollablePage {
Core.Settings {
property alias adb_custom: settings.adb_custom
property alias adb_location: settings.adb_location
property alias show_system_checks: show_system_checks.checked
}
property bool adb_custom
property string adb_location
@@ -308,6 +309,10 @@ Kirigami.ScrollablePage {
level: 1
type: Kirigami.Heading.Type.Primary
}
Controls.CheckBox {
id: show_system_checks
text: i18n("Check system configuration on start")
}
Controls.CheckBox {
id: debug_gui
text: i18n("Enable debug window")