fix recursion show/hide on startup

--in latte+unity style scenario on fist mouse
hovered there was a chance the appmenu to show/hide
continuously
This commit is contained in:
Michail Vourlakos committed 2021-05-29 08:11:44 +03:00
1 parent f884421117
commit 757209d630
1 file changed
-21
-21
View File
@@ -58,14 +58,6 @@ Item{
broadcoastCooperationRequest(isActive)
}
onHiddenFromBroadcastChanged: {
if (!hiddenFromBroadcast) {
//! This way we make sure that if the mouse enters very fast the window title and appmenu showing is triggered
//! and the mouse is not inside appmenu when it become visible then window tile must return its visibility
validateFirstShowTimer.start();
}
}
onMenuIsPresentChanged: {
if (latteBridge) {
latteBridge.actions.broadcastToApplet("org.kde.windowtitle", "menuIsPresent", menuIsPresent);
@@ -172,17 +164,4 @@ Item{
interval: 5
onTriggered: plasmoid.configuration.sendActivateWindowTitleCooperationFromEditMode = -1;
}
//! This way we make sure that if the mouse enters very fast the window title and appmenu showing is triggered
//! and the mouse is not inside appmenu when it become visible then window tile must return its visibility
Timer{
id: validateFirstShowTimer
interval: 150
onTriggered: {
if (cooperationEstablished) {
sendValidVisibility();
}
}
}
}