mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fix emote popup remember last position by moving setStayInScreenRect into EmotePopup constructor (#1752)
This commit is contained in:
parent
defc12c129
commit
0b0fdb4ba2
2 changed files with 1 additions and 1 deletions
|
@ -114,6 +114,7 @@ namespace {
|
|||
EmotePopup::EmotePopup(QWidget *parent)
|
||||
: BasePopup(BaseWindow::EnableCustomFrame, parent)
|
||||
{
|
||||
this->setStayInScreenRect(true);
|
||||
this->moveTo(this, getApp()->windows->emotePopupPos(), false);
|
||||
|
||||
auto layout = new QVBoxLayout(this);
|
||||
|
|
|
@ -155,7 +155,6 @@ void SplitInput::openEmotePopup()
|
|||
if (!this->emotePopup_)
|
||||
{
|
||||
this->emotePopup_ = new EmotePopup(this);
|
||||
this->emotePopup_->setStayInScreenRect(true);
|
||||
this->emotePopup_->setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
this->emotePopup_->linkClicked.connect([this](const Link &link) {
|
||||
|
|
Loading…
Reference in a new issue