Remove dead code

This commit is contained in:
David Heinemeier Hansson
2026-05-19 10:50:36 +02:00
parent 8cd9e34294
commit 8fa463975a
36 changed files with 130 additions and 309 deletions
+13 -4
View File
@@ -153,7 +153,7 @@ Item {
]
}
},
plugins: [{ id: "omarchy.osd" }]
plugins: []
})
property var defaultConfig: builtinShellConfig
@@ -355,11 +355,20 @@ Item {
function onChanged() { root.catalogRevision++ }
}
function canonicalWidgetId(id) {
switch (String(id || "")) {
case "idle": return "idleInhibitor"
case "weatherFlyout": return "weather"
default: return String(id || "")
}
}
function widgetMetadata(id) {
var key = String(id || "")
if (root.barWidgetRegistry && root.barWidgetRegistry.has(key))
return root.barWidgetRegistry.metadataFor(key) || {}
if (builtinWidgetMeta[key]) return builtinWidgetMeta[key]
var canonicalKey = canonicalWidgetId(key)
if (root.barWidgetRegistry && root.barWidgetRegistry.has(canonicalKey))
return root.barWidgetRegistry.metadataFor(canonicalKey) || {}
if (builtinWidgetMeta[canonicalKey]) return builtinWidgetMeta[canonicalKey]
var manifest = root.pluginRegistry ? root.pluginRegistry.installedPlugins[key] : null
if (manifest) {
+6 -3
View File
@@ -5,7 +5,10 @@
"version": "1.0.0",
"author": "Omarchy",
"description": "Customize the Omarchy bar position and widgets",
"kinds": ["panel"],
"activation": "on-demand",
"entryPoints": { "panel": "SettingsPanel.qml" }
"kinds": [
"panel"
],
"entryPoints": {
"panel": "SettingsPanel.qml"
}
}