mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Merge pull request #1209 from leon-richardt/emote-autocompletion-fix
Fix Emote Completion Bug
This commit is contained in:
commit
c45657da82
|
@ -16,6 +16,11 @@ ResizingTextEdit::ResizingTextEdit()
|
||||||
QObject::connect(this, &QTextEdit::textChanged, this,
|
QObject::connect(this, &QTextEdit::textChanged, this,
|
||||||
&QWidget::updateGeometry);
|
&QWidget::updateGeometry);
|
||||||
|
|
||||||
|
// Whenever the setting for emote completion changes, force a
|
||||||
|
// refresh on the completion model the next time "Tab" is pressed
|
||||||
|
getSettings()->prefixOnlyEmoteCompletion.connect(
|
||||||
|
[this] { this->completionInProgress_ = false; });
|
||||||
|
|
||||||
this->setFocusPolicy(Qt::ClickFocus);
|
this->setFocusPolicy(Qt::ClickFocus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -283,8 +283,10 @@ void GeneralPage::initLayout(SettingsLayout &layout)
|
||||||
{"Don't show", "Always show", "Hold shift"}, s.emotesTooltipPreview,
|
{"Don't show", "Always show", "Hold shift"}, s.emotesTooltipPreview,
|
||||||
[](int index) { return index; }, [](auto args) { return args.index; },
|
[](int index) { return index; }, [](auto args) { return args.index; },
|
||||||
false);
|
false);
|
||||||
layout.addCheckbox("Only search for emote autocompletion at the start of emote names",
|
|
||||||
s.prefixOnlyEmoteCompletion);
|
layout.addCheckbox(
|
||||||
|
"Only search for emote autocompletion at the start of emote names",
|
||||||
|
s.prefixOnlyEmoteCompletion);
|
||||||
|
|
||||||
layout.addSpacing(16);
|
layout.addSpacing(16);
|
||||||
layout.addSeperator();
|
layout.addSeperator();
|
||||||
|
|
Loading…
Reference in a new issue