[WindowThumbnail] Update thumbnail content
REVIEW: 129669 Signed-off-by: Anthony Fieroni <bvbfan@abv.bg>
This commit is contained in:
parent
a7ccca25ba
commit
d46a7f39ee
@ -165,6 +165,7 @@ WindowThumbnail::WindowThumbnail(QQuickItem *parent)
|
|||||||
// restart the redirection, it might not have been active yet
|
// restart the redirection, it might not have been active yet
|
||||||
stopRedirecting();
|
stopRedirecting();
|
||||||
startRedirecting();
|
startRedirecting();
|
||||||
|
update();
|
||||||
});
|
});
|
||||||
connect(this, &QQuickItem::enabledChanged, [this]() {
|
connect(this, &QQuickItem::enabledChanged, [this]() {
|
||||||
if (!isEnabled()) {
|
if (!isEnabled()) {
|
||||||
@ -172,6 +173,7 @@ WindowThumbnail::WindowThumbnail(QQuickItem *parent)
|
|||||||
releaseResources();
|
releaseResources();
|
||||||
} else if (isVisible()) {
|
} else if (isVisible()) {
|
||||||
startRedirecting();
|
startRedirecting();
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
connect(this, &QQuickItem::visibleChanged, [this]() {
|
connect(this, &QQuickItem::visibleChanged, [this]() {
|
||||||
@ -180,6 +182,7 @@ WindowThumbnail::WindowThumbnail(QQuickItem *parent)
|
|||||||
releaseResources();
|
releaseResources();
|
||||||
} else if (isEnabled()) {
|
} else if (isEnabled()) {
|
||||||
startRedirecting();
|
startRedirecting();
|
||||||
|
update();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
if (QGuiApplication *gui = dynamic_cast<QGuiApplication *>(QCoreApplication::instance())) {
|
if (QGuiApplication *gui = dynamic_cast<QGuiApplication *>(QCoreApplication::instance())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user