From ce114b33ffcb2a437e4b979b1dc5cff089c5315a Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Fri, 15 Aug 2025 22:50:14 +0700 Subject: [PATCH] fix unresolved import and unsafe undefined access --- .config/quickshell/ii/modules/bar/SysTrayItem.qml | 4 ++-- .config/quickshell/ii/modules/verticalBar/VerticalBar.qml | 1 - .../quickshell/ii/modules/verticalBar/VerticalBarContent.qml | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.config/quickshell/ii/modules/bar/SysTrayItem.qml b/.config/quickshell/ii/modules/bar/SysTrayItem.qml index d95a74ae..85a0884a 100644 --- a/.config/quickshell/ii/modules/bar/SysTrayItem.qml +++ b/.config/quickshell/ii/modules/bar/SysTrayItem.qml @@ -34,8 +34,8 @@ MouseArea { menu: root.item.menu anchor.window: bar - anchor.rect.x: root.x + (Config.options.bar.vertical ? 0 : bar.width) - anchor.rect.y: root.y + (Config.options.bar.vertical ? bar.height : 0) + anchor.rect.x: root.x + (Config.options.bar.vertical ? 0 : bar?.width) + anchor.rect.y: root.y + (Config.options.bar.vertical ? bar?.height : 0) anchor.rect.height: root.height anchor.rect.width: root.width anchor.edges: Config.options.bar.bottom ? (Edges.Top | Edges.Left) : (Edges.Bottom | Edges.Right) diff --git a/.config/quickshell/ii/modules/verticalBar/VerticalBar.qml b/.config/quickshell/ii/modules/verticalBar/VerticalBar.qml index 2f6aa6de..3a734e94 100644 --- a/.config/quickshell/ii/modules/verticalBar/VerticalBar.qml +++ b/.config/quickshell/ii/modules/verticalBar/VerticalBar.qml @@ -1,4 +1,3 @@ -import "./weather" import QtQuick import QtQuick.Layouts import Quickshell diff --git a/.config/quickshell/ii/modules/verticalBar/VerticalBarContent.qml b/.config/quickshell/ii/modules/verticalBar/VerticalBarContent.qml index feaa5d9c..42e71026 100644 --- a/.config/quickshell/ii/modules/verticalBar/VerticalBarContent.qml +++ b/.config/quickshell/ii/modules/verticalBar/VerticalBarContent.qml @@ -1,4 +1,3 @@ -import "./weather" import QtQuick import QtQuick.Layouts import Quickshell