Commit 38db9ac8 authored by Matthieu Gallien's avatar Matthieu Gallien 🎵
Browse files

let the system tray icon be visible only when the windows is hidden

parent 9bd6f34b
......@@ -37,7 +37,7 @@ Item {
target: elisaMainWindow
onClosing: {
if (systemTrayIcon.visible) {
if (systemTrayIcon.available && showSystemTrayIcon) {
close.accepted = false
elisaMainWindow.hide()
}
......@@ -66,7 +66,7 @@ Item {
icon.name: 'elisa'
tooltip: mainWindow.title
visible: available && showSystemTrayIcon
visible: available && showSystemTrayIcon && !mainWindow.visible
menu: globalMenu
......
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