From eef3ff64b75bcb049a90d25b2016bb16779ec49f Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Thu, 6 Jul 2023 19:49:02 +0200 Subject: [PATCH] Added the target AppImage filename to the results output of GuiApplicationUpdater Also properly centered the busy component on the window --- es-app/src/guis/GuiApplicationUpdater.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/es-app/src/guis/GuiApplicationUpdater.cpp b/es-app/src/guis/GuiApplicationUpdater.cpp index c54b25011..1aa4ab18d 100644 --- a/es-app/src/guis/GuiApplicationUpdater.cpp +++ b/es-app/src/guis/GuiApplicationUpdater.cpp @@ -129,9 +129,7 @@ GuiApplicationUpdater::GuiApplicationUpdater() setPosition((mRenderer->getScreenWidth() - mSize.x) / 2.0f, std::round(mRenderer->getScreenHeight() * 0.13f)); - mBusyAnim.setSize(glm::vec2 {mRenderer->getScreenWidth(), - mRenderer->getScreenHeight() * - (mRenderer->getIsVerticalOrientation() ? 0.80f : 1.0f)}); + mBusyAnim.setSize(mSize); mBusyAnim.setText("DOWNLOADING"); mBusyAnim.onSizeChanged(); } @@ -336,7 +334,7 @@ bool GuiApplicationUpdater::installAppImage() LOG(LogInfo) << "Package was successfully installed as \"" << packageTargetFile << "\""; std::unique_lock lock {mMutex}; - mMessage = "Package was successfully installed"; + mMessage = "Successfully installed as " + Utils::FileSystem::getFileName(packageTargetFile); mHasInstalled = true; return false; @@ -393,7 +391,7 @@ void GuiApplicationUpdater::render(const glm::mat4& parentTrans) renderChildren(trans); if (mDownloading) - mBusyAnim.render(parentTrans); + mBusyAnim.render(trans); } void GuiApplicationUpdater::onSizeChanged()