mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
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:
parent
1c7a18830e
commit
eef3ff64b7
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue