fix unresolved import and unsafe undefined access

This commit is contained in:
end-4 2025-08-15 22:50:14 +07:00
parent d05c451294
commit ce114b33ff
3 changed files with 2 additions and 4 deletions

View file

@ -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)

View file

@ -1,4 +1,3 @@
import "./weather"
import QtQuick
import QtQuick.Layouts
import Quickshell

View file

@ -1,4 +1,3 @@
import "./weather"
import QtQuick
import QtQuick.Layouts
import Quickshell