From 5994bd7929c2e96a451982409a97acca937dfc8f Mon Sep 17 00:00:00 2001 From: LemmyCook Date: Fri, 22 Aug 2025 14:50:14 -0400 Subject: [PATCH] Fixed warnings due to delete settings --- Commons/Settings.qml | 2 -- Modules/Bar/Widgets/ActiveWindow.qml | 2 +- Modules/Bar/Widgets/NotificationHistory.qml | 1 - Modules/Bar/Widgets/SystemMonitor.qml | 1 - Modules/Bar/Widgets/Tray.qml | 4 +--- 5 files changed, 2 insertions(+), 8 deletions(-) diff --git a/Commons/Settings.qml b/Commons/Settings.qml index dcb664a..6797201 100644 --- a/Commons/Settings.qml +++ b/Commons/Settings.qml @@ -121,14 +121,12 @@ Singleton { bar: JsonObject { property string position: "top" // Possible values: "top", "bottom" property bool showActiveWindowIcon: true - property bool alwaysShowBatteryPercentage: false property real backgroundOpacity: 1.0 property list monitors: [] // Widget configuration for modular bar system property JsonObject widgets - widgets: JsonObject { property list left: ["SystemMonitor", "ActiveWindow", "MediaMini"] property list center: ["Workspace"] diff --git a/Modules/Bar/Widgets/ActiveWindow.qml b/Modules/Bar/Widgets/ActiveWindow.qml index ec7b42b..25af960 100644 --- a/Modules/Bar/Widgets/ActiveWindow.qml +++ b/Modules/Bar/Widgets/ActiveWindow.qml @@ -11,7 +11,7 @@ Row { id: root anchors.verticalCenter: parent.verticalCenter spacing: Style.marginS * scaling - visible: (Settings.data.bar.showActiveWindow && getTitle() !== "") + visible: getTitle() !== "" property bool showingFullTitle: false property int lastWindowIndex: -1 diff --git a/Modules/Bar/Widgets/NotificationHistory.qml b/Modules/Bar/Widgets/NotificationHistory.qml index ba794b4..8cf0502 100644 --- a/Modules/Bar/Widgets/NotificationHistory.qml +++ b/Modules/Bar/Widgets/NotificationHistory.qml @@ -10,7 +10,6 @@ import qs.Widgets NIconButton { id: root - visible: Settings.data.bar.showNotificationsHistory sizeMultiplier: 0.8 icon: "notifications" tooltipText: "Notification History" diff --git a/Modules/Bar/Widgets/SystemMonitor.qml b/Modules/Bar/Widgets/SystemMonitor.qml index 860adf3..18bb8b6 100644 --- a/Modules/Bar/Widgets/SystemMonitor.qml +++ b/Modules/Bar/Widgets/SystemMonitor.qml @@ -8,7 +8,6 @@ Row { id: root anchors.verticalCenter: parent.verticalCenter spacing: Style.marginS * scaling - visible: (Settings.data.bar.showSystemInfo) Rectangle { // Let the Rectangle size itself based on its content (the Row) diff --git a/Modules/Bar/Widgets/Tray.qml b/Modules/Bar/Widgets/Tray.qml index d85a174..553e56b 100644 --- a/Modules/Bar/Widgets/Tray.qml +++ b/Modules/Bar/Widgets/Tray.qml @@ -12,10 +12,8 @@ import qs.Widgets Rectangle { readonly property real itemSize: 24 * scaling - visible: Settings.data.bar.showTray && (SystemTray.items.values.length > 0) - + visible: SystemTray.items.values.length > 0 width: tray.width + Style.marginM * scaling * 2 - height: Math.round(Style.capsuleHeight * scaling) radius: Math.round(Style.radiusM * scaling) color: Color.mSurfaceVariant