fix: dangling screen issues and incorrect warnings

This commit is contained in:
outfoxxed 2024-02-18 19:57:12 -08:00
parent a361930865
commit 55bcae4d62
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 41 additions and 41 deletions

View file

@ -45,6 +45,9 @@ void ProxyWindowBase::onReload(QObject* oldInstance) {
this->mContentItem->setWidth(this->width());
this->mContentItem->setHeight(this->height());
// without this the dangling screen pointer wont be updated to a real screen
emit this->screenChanged();
emit this->windowConnected();
this->window->setVisible(this->mVisible);
}