Skip to content

fix: BarWidget QML errors preventing plugins from loading in Noctalia - #117

Merged
VictorGSchneider merged 1 commit into
mainfrom
claude/cool-clarke-AUFdY
May 29, 2026
Merged

fix: BarWidget QML errors preventing plugins from loading in Noctalia#117
VictorGSchneider merged 1 commit into
mainfrom
claude/cool-clarke-AUFdY

Conversation

@VictorGSchneider

@VictorGSchneider VictorGSchneider commented May 29, 2026

Copy link
Copy Markdown
Owner

Root cause

Both stoa-doctor-pill and stoa-drive-pill BarWidget.qml files had two issues that caused Noctalia to fail loading them — so they never appeared in the Bar Widgets dropdown:

  1. NToolTip was removed from Noctalia's widget library — the correct pattern is to declare a tooltipText string property on the root item instead. Using NToolTip caused a QML type-not-found error at load time.

  2. Missing required BarWidget contract properties — Noctalia's PluginBarWidgetSlot injects screen, widgetId, section, and sectionWidgetIndex at runtime. Without these declared on the root item, Noctalia may reject the component.

Changes

  • Replaced NToolTip { target: root; text: ... } with property string tooltipText: ... on root item in both BarWidget.qml files
  • Added missing required properties to both BarWidget.qml files:
    property ShellScreen screen
    property string widgetId: ""
    property string section: ""
    property int    sectionWidgetIndex: -1

Test plan

  • git pull && ./install.sh (symlinks already exist — no-op)
  • Restart Noctalia (qs -c noctalia-shell quit or re-login)
  • Open Noctalia Settings → Bar → Bar Widgets — stoa-doctor-pill and stoa-drive-pill should now appear in the list
  • Enable both; verify pill colors and click popup menus work

https://claude.ai/code/session_01JH7MsJFvce1eEde8DJiCfe


Generated by Claude Code

…operties

NToolTip was removed from Noctalia's widget library — use tooltipText
property instead. Also add the required BarWidget contract properties
(ShellScreen screen, widgetId, section, sectionWidgetIndex) that
Noctalia's PluginBarWidgetSlot injects at runtime. Missing these caused
the plugins to fail QML load and not appear in the Bar Widgets dropdown.

https://claude.ai/code/session_01JH7MsJFvce1eEde8DJiCfe
@VictorGSchneider
VictorGSchneider merged commit 58916be into main May 29, 2026
1 check passed
@VictorGSchneider
VictorGSchneider deleted the claude/cool-clarke-AUFdY branch May 29, 2026 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants