fix tray menu loading
This commit is contained in:
@@ -12,6 +12,7 @@ MouseArea {
|
||||
required property SystemTrayItem item
|
||||
required property PanelWindow bar
|
||||
property point globalPos
|
||||
property bool hasLoaded: false
|
||||
|
||||
implicitWidth: 22
|
||||
|
||||
@@ -54,6 +55,12 @@ MouseArea {
|
||||
trayMenu.trayMenu = null;
|
||||
}
|
||||
}
|
||||
|
||||
function onFinishedLoading() {
|
||||
if ( !root.hasLoaded )
|
||||
trayMenu.visible = false;
|
||||
root.hasLoaded = true;
|
||||
}
|
||||
}
|
||||
|
||||
onClicked: {
|
||||
|
||||
Reference in New Issue
Block a user