[Linux] Add reopen to tray options, enhance app tray, add ability to detect duplicate app instances, prevent duplicate app instances, and allow for original instance to be brought to front using the sockets

This commit is contained in:
Henry Cheng
2025-04-24 19:16:24 -04:00
parent 1571c6d300
commit a51efe35dc
4 changed files with 119 additions and 2 deletions

View File

@@ -9,9 +9,33 @@ ApplicationWindow {
width: 400
height: 300
title: "AirPods Settings"
objectName: "mainWindowObject"
onClosing: mainWindow.visible = false
function reopen(pageToLoad) {
if (pageToLoad == "settings")
{
if (stackView.depth == 1)
{
stackView.push(settingsPage)
}
}
else
{
if (stackView.depth > 1)
{
stackView.pop()
}
}
if (!mainWindow.visible) {
mainWindow.visible = true
}
raise()
requestActivate()
}
// Mouse area for handling back/forward navigation
MouseArea {
anchors.fill: parent