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