mirror of
https://github.com/kavishdevar/librepods.git
synced 2026-01-28 22:01:50 +00:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user