mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 16:02:51 -05:00
bar: fix auto-hide hiding when tray popout is opened (#802)
This commit is contained in:
@@ -445,16 +445,27 @@ PanelWindow {
|
|||||||
|
|
||||||
onHasActivePopoutChanged: evaluateReveal()
|
onHasActivePopoutChanged: evaluateReveal()
|
||||||
|
|
||||||
|
function updateActivePopoutState() {
|
||||||
|
const screenName = barWindow.screen.name;
|
||||||
|
const activePopout = PopoutManager.currentPopoutsByScreen[screenName];
|
||||||
|
const activeTrayMenu = TrayMenuManager.activeTrayMenus[screenName];
|
||||||
|
const trayOpen = rootWindow.systemTrayMenuOpen;
|
||||||
|
|
||||||
|
const hasVisiblePopout = activePopout && activePopout.shouldBeVisible;
|
||||||
|
topBarCore.hasActivePopout = !!(hasVisiblePopout || activeTrayMenu || trayOpen);
|
||||||
|
}
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: PopoutManager
|
target: PopoutManager
|
||||||
function onPopoutChanged() {
|
function onPopoutChanged() {
|
||||||
const screenName = barWindow.screen.name;
|
topBarCore.updateActivePopoutState();
|
||||||
const activePopout = PopoutManager.currentPopoutsByScreen[screenName];
|
}
|
||||||
const activeTrayMenu = TrayMenuManager.activeTrayMenus[screenName];
|
}
|
||||||
const trayOpen = rootWindow.systemTrayMenuOpen;
|
|
||||||
|
|
||||||
const hasVisiblePopout = activePopout && activePopout.shouldBeVisible;
|
Connections {
|
||||||
topBarCore.hasActivePopout = !!(hasVisiblePopout || activeTrayMenu || trayOpen);
|
target: TrayMenuManager
|
||||||
|
function onActiveTrayMenusChanged() {
|
||||||
|
topBarCore.updateActivePopoutState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user