Move tray icon outside C++ and allow hiding tray icon.

This commit is contained in:
Black Hat
2018-10-21 10:17:21 +08:00
parent 73ce9c2bf1
commit aae84ba65f
6 changed files with 58 additions and 25 deletions

View File

@@ -67,6 +67,13 @@ Page {
onCheckedChanged: MSettings.pressAndHold = checked
}
Switch {
text: "Show tray icon"
checked: MSettings.showTray
onCheckedChanged: MSettings.showTray = checked
}
Switch {
text: "Confirm on Exit"
checked: MSettings.confirmOnExit

View File

@@ -4,6 +4,7 @@ import Qt.labs.settings 1.0
Settings {
property bool pressAndHold
property bool showTray: true
property bool confirmOnExit: true
property bool darkTheme