Use application name instead of hardcoding Mirage
This commit is contained in:
parent
bde7af8a5a
commit
8a04f80602
|
@ -27,7 +27,7 @@ SystemTrayIcon {
|
||||||
|
|
||||||
|
|
||||||
visible: true
|
visible: true
|
||||||
tooltip: qsTr("Mirage")
|
tooltip: Qt.application.displayName
|
||||||
icon.source: `../../icons/${iconPack}/tray-icon.png`
|
icon.source: `../../icons/${iconPack}/tray-icon.png`
|
||||||
|
|
||||||
onActivated:
|
onActivated:
|
||||||
|
@ -37,7 +37,10 @@ SystemTrayIcon {
|
||||||
|
|
||||||
menu: Menu {
|
menu: Menu {
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: window.visible ? "Hide Mirage" : "Show Mirage"
|
text:
|
||||||
|
window.visible ?
|
||||||
|
"Minimize to tray" :
|
||||||
|
qsTr("Open ") + Qt.application.displayName
|
||||||
onTriggered:
|
onTriggered:
|
||||||
window.visible ?
|
window.visible ?
|
||||||
window.hide() :
|
window.hide() :
|
||||||
|
@ -45,7 +48,7 @@ SystemTrayIcon {
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: qsTr("Quit Mirage")
|
text: qsTr("Quit ") + Qt.application.displayName
|
||||||
onTriggered: Qt.quit()
|
onTriggered: Qt.quit()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user