Fix emote popup remember last position by moving setStayInScreenRect into EmotePopup constructor (#1752)

This commit is contained in:
mmb L
2020-07-05 20:07:03 +08:00
committed by GitHub
parent defc12c129
commit 0b0fdb4ba2
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -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);
-1
View File
@@ -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) {