diff --git a/dashboard/qml/Main.qml b/dashboard/qml/Main.qml index ea1df8ae..e0795821 100644 --- a/dashboard/qml/Main.qml +++ b/dashboard/qml/Main.qml @@ -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") diff --git a/dashboard/qml/SettingsPage.qml b/dashboard/qml/SettingsPage.qml index 11249760..9c456111 100644 --- a/dashboard/qml/SettingsPage.qml +++ b/dashboard/qml/SettingsPage.qml @@ -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")