forked from Shinonome/dots-hyprland
fix(quickshell): fix qs crashing when sidebar is detached while in use
This is a small fix that removes the left sidebar from the focus grab system before destroying the panel.
This commit is contained in:
@@ -67,6 +67,7 @@ Scope { // Scope
|
|||||||
|
|
||||||
onDetachChanged: {
|
onDetachChanged: {
|
||||||
if (root.detach) {
|
if (root.detach) {
|
||||||
|
GlobalFocusGrab.removeDismissable(sidebarLoader.item) // Remove sidebar from the focus grab system
|
||||||
sidebarContent.parent = null; // Detach content from sidebar
|
sidebarContent.parent = null; // Detach content from sidebar
|
||||||
sidebarLoader.active = false; // Unload sidebar
|
sidebarLoader.active = false; // Unload sidebar
|
||||||
detachedSidebarLoader.active = true; // Load detached window
|
detachedSidebarLoader.active = true; // Load detached window
|
||||||
|
|||||||
Reference in New Issue
Block a user