Plugin links pt 2: Link::InsertText (#6527)

This commit is contained in:
Mm2PL
2025-10-25 15:30:49 +02:00
committed by GitHub
parent 86217019da
commit 6e443cd767
7 changed files with 15 additions and 2 deletions
+9
View File
@@ -2423,6 +2423,15 @@ void ChannelView::handleMouseClick(QMouseEvent *event,
if (link.type == Link::InsertText)
{
this->linkClicked.invoke(link);
if (this->context_ == Context::None)
{
auto *split = dynamic_cast<Split *>(this->parentWidget());
if (split)
{
split->insertTextToInput(link.value);
}
}
}
}
break;