Skip to content

fix: correct NPopupContextMenu API (onTriggered + openAtItem) - #122

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

fix: correct NPopupContextMenu API (onTriggered + openAtItem)#122
VictorGSchneider merged 1 commit into
mainfrom
claude/cool-clarke-AUFdY

Conversation

@VictorGSchneider

Copy link
Copy Markdown
Owner

Problema

Ambos os BarWidget.qml falhavam ao carregar com:

Cannot assign to non-existent property "onAction"

NPopupContextMenu emite signal triggered(string action, var item) — não action. E o menu abre via openAtItem(item, screen), não via PanelService.showContextMenu().

Mudanças

  • onAction: function(action)onTriggered: function(action, item) em ambos os plugins
  • PanelService.showContextMenu(contextMenu, root, screen)contextMenu.openAtItem(root, screen)
  • Remove import qs.Services.UI (não mais necessário)

Como testar

Após git pull e reiniciar o Noctalia, os pills do doctor e drive devem aparecer na bar. Botão direito deve abrir o menu de contexto.

https://claude.ai/code/session_01JH7MsJFvce1eEde8DJiCfe


Generated by Claude Code

NPopupContextMenu emits signal triggered(string action, var item),
not action. Also replace PanelService.showContextMenu() with the
component's own openAtItem(root, screen) method, and remove the
unused qs.Services.UI import.

https://claude.ai/code/session_01JH7MsJFvce1eEde8DJiCfe
@VictorGSchneider
VictorGSchneider merged commit 207f669 into main May 31, 2026
1 check passed
@VictorGSchneider
VictorGSchneider deleted the claude/cool-clarke-AUFdY branch May 31, 2026 01:44
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