aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/pages
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/pages
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/pages')
-rw-r--r--launcher/ui/pages/modplatform/ModPage.cpp1
-rw-r--r--launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/launcher/ui/pages/modplatform/ModPage.cpp b/launcher/ui/pages/modplatform/ModPage.cpp
index 4fce0242..153bb049 100644
--- a/launcher/ui/pages/modplatform/ModPage.cpp
+++ b/launcher/ui/pages/modplatform/ModPage.cpp
@@ -350,4 +350,5 @@ void ModPage::updateUi()
HoeDown h;
ui->packDescription->setHtml(text + (current.extraData.body.isEmpty() ? current.description : h.process(current.extraData.body.toUtf8())));
+ ui->packDescription->flush();
}
diff --git a/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp b/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp
index 70f1388a..4482774c 100644
--- a/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp
+++ b/launcher/ui/pages/modplatform/modrinth/ModrinthPage.cpp
@@ -284,6 +284,7 @@ void ModrinthPage::updateUI()
text += h.process(current.extra.body.toUtf8());
ui->packDescription->setHtml(text + current.description);
+ ui->packDescription->flush();
}
void ModrinthPage::suggestCurrent()