Added the target AppImage filename to the results output of GuiApplicationUpdater

Also properly centered the busy component on the window
This commit is contained in:
Leon Styhre 2023-07-06 19:49:02 +02:00
parent 1c7a18830e
commit eef3ff64b7

View file

@ -129,9 +129,7 @@ GuiApplicationUpdater::GuiApplicationUpdater()
setPosition((mRenderer->getScreenWidth() - mSize.x) / 2.0f, setPosition((mRenderer->getScreenWidth() - mSize.x) / 2.0f,
std::round(mRenderer->getScreenHeight() * 0.13f)); std::round(mRenderer->getScreenHeight() * 0.13f));
mBusyAnim.setSize(glm::vec2 {mRenderer->getScreenWidth(), mBusyAnim.setSize(mSize);
mRenderer->getScreenHeight() *
(mRenderer->getIsVerticalOrientation() ? 0.80f : 1.0f)});
mBusyAnim.setText("DOWNLOADING"); mBusyAnim.setText("DOWNLOADING");
mBusyAnim.onSizeChanged(); mBusyAnim.onSizeChanged();
} }
@ -336,7 +334,7 @@ bool GuiApplicationUpdater::installAppImage()
LOG(LogInfo) << "Package was successfully installed as \"" << packageTargetFile << "\""; LOG(LogInfo) << "Package was successfully installed as \"" << packageTargetFile << "\"";
std::unique_lock<std::mutex> lock {mMutex}; std::unique_lock<std::mutex> lock {mMutex};
mMessage = "Package was successfully installed"; mMessage = "Successfully installed as " + Utils::FileSystem::getFileName(packageTargetFile);
mHasInstalled = true; mHasInstalled = true;
return false; return false;
@ -393,7 +391,7 @@ void GuiApplicationUpdater::render(const glm::mat4& parentTrans)
renderChildren(trans); renderChildren(trans);
if (mDownloading) if (mDownloading)
mBusyAnim.render(parentTrans); mBusyAnim.render(trans);
} }
void GuiApplicationUpdater::onSizeChanged() void GuiApplicationUpdater::onSizeChanged()