aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/widgets/ProjectDescriptionPage.h
diff options
context:
space:
mode:
authorflow <flowlnlnln@gmail.com>2022-10-11 14:19:29 -0300
committerflow <flowlnlnln@gmail.com>2022-10-11 15:51:54 -0300
commitd194b02e28132df3ea3da961299e969614b8a185 (patch)
treed4c8afbd6d595fc30972b72e223abd2544c7ac55 /launcher/ui/widgets/ProjectDescriptionPage.h
parentd7992ab29d07c6d26377f6db1cfca6059aace471 (diff)
downloadPrismLauncher-d194b02e28132df3ea3da961299e969614b8a185.tar.gz
PrismLauncher-d194b02e28132df3ea3da961299e969614b8a185.tar.bz2
PrismLauncher-d194b02e28132df3ea3da961299e969614b8a185.zip
fix: prevent images overriding content when changing pages
Signed-off-by: flow <flowlnlnln@gmail.com>
Diffstat (limited to 'launcher/ui/widgets/ProjectDescriptionPage.h')
-rw-r--r--launcher/ui/widgets/ProjectDescriptionPage.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/launcher/ui/widgets/ProjectDescriptionPage.h b/launcher/ui/widgets/ProjectDescriptionPage.h
index 8387d3fb..3dd85302 100644
--- a/launcher/ui/widgets/ProjectDescriptionPage.h
+++ b/launcher/ui/widgets/ProjectDescriptionPage.h
@@ -19,6 +19,14 @@ class ProjectDescriptionPage final : public QTextBrowser {
void setMetaEntry(QString entry);
+ public slots:
+ /** Flushes the current processing happening in the page.
+ *
+ * Should be called when changing the page's content entirely, to
+ * prevent old tasks from changing the new content.
+ */
+ void flush();
+
private:
shared_qobject_ptr<VariableSizedImageObject> m_image_text_object;
};