mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
NSectionEditor: display plugin name instead of id
This commit is contained in:
@@ -305,9 +305,15 @@ NBox {
|
||||
|
||||
NText {
|
||||
text: {
|
||||
// Strip "plugin:" prefix for display
|
||||
// For plugin widgets, get the actual plugin name from manifest
|
||||
if (root.widgetRegistry && root.widgetRegistry.isPluginWidget(modelData.id)) {
|
||||
return modelData.id.replace("plugin:", "");
|
||||
const pluginId = modelData.id.replace("plugin:", "");
|
||||
const manifest = PluginRegistry.getPluginManifest(pluginId);
|
||||
if (manifest && manifest.name) {
|
||||
return manifest.name;
|
||||
}
|
||||
// Fallback: just strip the prefix
|
||||
return pluginId;
|
||||
}
|
||||
return modelData.id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user