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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

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);

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) {