Fix emote popup remember last position by moving setStayInScreenRect into EmotePopup constructor (#1752)
This commit is contained in:
@@ -114,6 +114,7 @@ namespace {
|
|||||||
EmotePopup::EmotePopup(QWidget *parent)
|
EmotePopup::EmotePopup(QWidget *parent)
|
||||||
: BasePopup(BaseWindow::EnableCustomFrame, parent)
|
: BasePopup(BaseWindow::EnableCustomFrame, parent)
|
||||||
{
|
{
|
||||||
|
this->setStayInScreenRect(true);
|
||||||
this->moveTo(this, getApp()->windows->emotePopupPos(), false);
|
this->moveTo(this, getApp()->windows->emotePopupPos(), false);
|
||||||
|
|
||||||
auto layout = new QVBoxLayout(this);
|
auto layout = new QVBoxLayout(this);
|
||||||
|
|||||||
@@ -155,7 +155,6 @@ void SplitInput::openEmotePopup()
|
|||||||
if (!this->emotePopup_)
|
if (!this->emotePopup_)
|
||||||
{
|
{
|
||||||
this->emotePopup_ = new EmotePopup(this);
|
this->emotePopup_ = new EmotePopup(this);
|
||||||
this->emotePopup_->setStayInScreenRect(true);
|
|
||||||
this->emotePopup_->setAttribute(Qt::WA_DeleteOnClose);
|
this->emotePopup_->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
|
||||||
this->emotePopup_->linkClicked.connect([this](const Link &link) {
|
this->emotePopup_->linkClicked.connect([this](const Link &link) {
|
||||||
|
|||||||
Reference in New Issue
Block a user