mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Added option to turn off link info tooltips.
This commit is contained in:
parent
5253ab3f85
commit
f8c42918a6
|
@ -109,6 +109,7 @@ public:
|
|||
|
||||
/// Links
|
||||
BoolSetting linksDoubleClickOnly = {"/links/doubleClickToOpen", false};
|
||||
BoolSetting enableLinkInfoTooltip = {"/links/linkInfoTooltip", false};
|
||||
BoolSetting enableLowercaseLink = {"/links/linkLowercase", true};
|
||||
|
||||
/// Ingored Users
|
||||
|
|
|
@ -864,6 +864,8 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event)
|
|||
|
||||
if (tooltip.isEmpty()) {
|
||||
tooltipWidget->hide();
|
||||
} else if (hoverLayoutElement->getLink().isValid() && !getSettings()->enableLinkInfoTooltip) {
|
||||
tooltipWidget->hide();
|
||||
} else {
|
||||
tooltipWidget->moveTo(this, event->globalPos());
|
||||
tooltipWidget->setWordWrap(hoverLayoutElement->getLink().isValid());
|
||||
|
|
|
@ -50,6 +50,9 @@ FeelPage::FeelPage()
|
|||
form->addRow("Links:",
|
||||
this->createCheckBox("Open links only on double click",
|
||||
getSettings()->linksDoubleClickOnly));
|
||||
form->addRow("",
|
||||
this->createCheckBox("Show link info in tooltips",
|
||||
getSettings()->enableLinkInfoTooltip));
|
||||
}
|
||||
|
||||
layout->addSpacing(16);
|
||||
|
|
Loading…
Reference in a new issue