From 6a45e2532cba52a58e90d78362071e823516c005 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Fri, 6 Feb 2026 13:50:40 +0100 Subject: [PATCH] Prevent more shadowing --- src/app/qml/Main.qml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/qml/Main.qml b/src/app/qml/Main.qml index 1f286070c..c476ac216 100644 --- a/src/app/qml/Main.qml +++ b/src/app/qml/Main.qml @@ -151,8 +151,6 @@ Kirigami.ApplicationWindow { } contextDrawer: RoomDrawer { - id: contextDrawer - // This is a memory for all user initiated actions on the drawer, i.e. clicking the button // It is used to ensure that user choice is remembered when changing pages and expanding and contracting the window width property bool drawerUserState: NeoChatConfig.autoRoomInfoDrawer @@ -178,9 +176,9 @@ Kirigami.ApplicationWindow { // Connect to the onClicked function of the RoomDrawer handle button Connections { - target: contextDrawer.handle.children[0] + target: root.contextDrawer.handle.children[0] function onClicked() { - contextDrawer.drawerUserState = contextDrawer.drawerOpen; + root.contextDrawer.drawerUserState = root.contextDrawer.drawerOpen; } }