forked from Shinonome/dots-hyprland
waffles: osd: fix very precisely timed value change causing it to not reopen
This commit is contained in:
@@ -76,6 +76,12 @@ Scope {
|
||||
Loader {
|
||||
id: panelLoader
|
||||
active: false
|
||||
onActiveChanged: {
|
||||
if (active) return;
|
||||
root.indicators.forEach(i => {
|
||||
GlobalStates[i.globalStateValue] = false;
|
||||
});
|
||||
}
|
||||
sourceComponent: PanelWindow {
|
||||
id: panelWindow
|
||||
|
||||
@@ -123,13 +129,13 @@ Scope {
|
||||
// Animate close of current indicator
|
||||
ScriptAction {
|
||||
script: {
|
||||
osdIndicatorLoader.item.close()
|
||||
osdIndicatorLoader.item.close();
|
||||
}
|
||||
}
|
||||
// Wait for close anim
|
||||
PauseAnimation {
|
||||
duration: osdIndicatorLoader.item.closeAnimDuration
|
||||
}
|
||||
}
|
||||
PropertyAction {} // The source change happens here
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user