feat(tray): Remove global trayBlacklist

This commit is contained in:
loner
2025-10-10 05:00:13 +08:00
parent 8915de4673
commit f47216033e
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
"floating": false,
"marginVertical": 0.25,
"marginHorizontal": 0.25,
"trayBlacklist": [],
"widgets": {
"left": [
{
+1 -1
View File
@@ -139,7 +139,7 @@ Singleton {
property bool floating: false
property real marginVertical: 0.25
property real marginHorizontal: 0.25
property list<string> trayBlacklist: []
// Widget configuration for modular bar system
property JsonObject widgets
+1 -1
View File
@@ -37,7 +37,7 @@ Rectangle {
readonly property bool isVertical: barPosition === "left" || barPosition === "right"
readonly property bool compact: (Settings.data.bar.density === "compact")
property real itemSize: Math.round(Style.capsuleHeight * 0.65 * scaling)
property list<string> blacklist: widgetSettings.blacklist || Settings.data.bar.trayBlacklist || [] // Read from settings
property list<string> blacklist: widgetSettings.blacklist || widgetMetadata.blacklist || [] // Read from settings
property var filteredItems: []
function wildCardMatch(str, rule) {
@@ -10,7 +10,7 @@ ColumnLayout {
property var widgetMetadata: ({}) // Expected by BarWidgetSettingsDialog
// Local state for the blacklist
property var localBlacklist: widgetData.blacklist || Settings.data.bar.trayBlacklist || []
property var localBlacklist: widgetData.blacklist || []
ListModel {
id: blacklistModel