mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fixed expanding messages
This commit is contained in:
parent
a9d57f3ebd
commit
5c8e736518
1 changed files with 9 additions and 9 deletions
|
@ -1030,18 +1030,18 @@ void ChannelView::addContextMenuItems(const messages::MessageLayoutElement *hove
|
|||
}
|
||||
|
||||
// Copy actions
|
||||
menu->addAction("Copy selection",
|
||||
[this] { QGuiApplication::clipboard()->setText(this->getSelectedText()); });
|
||||
|
||||
if (!this->selection.isEmpty()) {
|
||||
menu->addAction("Copy message", [layout] {
|
||||
QString copyString;
|
||||
layout->addSelectionText(copyString);
|
||||
|
||||
QGuiApplication::clipboard()->setText(copyString);
|
||||
});
|
||||
menu->addAction("Copy selection",
|
||||
[this] { QGuiApplication::clipboard()->setText(this->getSelectedText()); });
|
||||
}
|
||||
|
||||
menu->addAction("Copy message", [layout] {
|
||||
QString copyString;
|
||||
layout->addSelectionText(copyString);
|
||||
|
||||
QGuiApplication::clipboard()->setText(copyString);
|
||||
});
|
||||
|
||||
// menu->addAction("Quote message", [layout] {
|
||||
// QString copyString;
|
||||
// layout->addSelectionText(copyString);
|
||||
|
|
Loading…
Reference in a new issue