forked from Shinonome/dots-hyprland
waffles: osd: fix very precisely timed value change causing it to not reopen
This commit is contained in:
@@ -17,7 +17,7 @@ Singleton {
|
||||
property string iconsPath: `${Directories.assetsPath}/icons/fluent`
|
||||
property bool dark: Appearance.m3colors.darkmode
|
||||
|
||||
property real backgroundTransparency: 0.18
|
||||
property real backgroundTransparency: 0.13
|
||||
property real panelBackgroundTransparency: 0.12
|
||||
property real panelLayerTransparency: root.dark ? 0.9 : 0.7
|
||||
property real contentTransparency: root.dark ? 0.9 : 0.5
|
||||
|
||||
@@ -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