radial: fix Ollie plugin lookup key (ollie_kate, not ollie-kate)
pluginView() is keyed by the plugin's catalog name (the .so / target name),
not its KPlugin metadata Id. Ollie's own code confirms the convention —
pluginView("kateprojectplugin"), pluginView("gitplusplus"). The Ollie Kate
plugin's target is ollie_kate, so the key is "ollie_kate" (underscore), not the
metadata Id "ollie-kate" (hyphen). With the wrong key pluginView returned null
and the Ollie radial branch never appeared.
This commit is contained in:
parent
629a2da68d
commit
f05ad9b654
|
|
@ -214,7 +214,7 @@ RadialNode RadialView::ollieBranchIfActive() const
|
|||
// findActionByName; instead we invoke the plugin view's Q_INVOKABLE action
|
||||
// methods by name in onRadialActivated. Each slice carries an "ollie:" id.
|
||||
RadialNode branch;
|
||||
if (!m_mainWindow->pluginView(QStringLiteral("ollie-kate"))) {
|
||||
if (!m_mainWindow->pluginView(QStringLiteral("ollie_kate"))) {
|
||||
return branch; // not enabled -> empty, caller omits it
|
||||
}
|
||||
|
||||
|
|
@ -248,7 +248,7 @@ bool RadialView::triggerOllieVerb(const QString &actionId) const
|
|||
if (!actionId.startsWith(QLatin1String("ollie:"))) {
|
||||
return false;
|
||||
}
|
||||
QObject *view = m_mainWindow->pluginView(QStringLiteral("ollie-kate"));
|
||||
QObject *view = m_mainWindow->pluginView(QStringLiteral("ollie_kate"));
|
||||
if (!view) {
|
||||
return true; // recognised as ours, but nothing to invoke
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue