Commit 1927eee9 authored by Olivier Trichet's avatar Olivier Trichet Committed by Nate Graham
Browse files

Let clicking systray icon raise Elisa to the foreground

After hiding Elisa in systray and then switching between other
applications window, when the Elisa systray icon is clicked, Elisa
application is opened but not raised to the foreground.

BUG: 430547
FIXED-IN: 22.04
parent 2e0d85e1
Pipeline #146432 passed with stage
in 7 minutes and 31 seconds
......@@ -201,12 +201,11 @@ Kirigami.ApplicationWindow {
showSystemTrayIcon: ElisaApplication.showSystemTrayIcon
elisaMainWindow: mainWindow
function onRaisePlayer() {
onRaisePlayer: function() {
mainWindow.visible = true
mainWindow.raise()
mainWindow.requestActivate()
}
}
}
......
......@@ -69,10 +69,8 @@ Item {
}
onActivated: {
if (reason === NativeMenu.SystemTrayIcon.Trigger && !elisaMainWindow.visible) {
elisaMainWindow.visible = true
} else if (reason === NativeMenu.SystemTrayIcon.Trigger && elisaMainWindow.visible) {
raisePlayer()
if (reason === NativeMenu.SystemTrayIcon.Trigger) {
raisePlayer();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment