1.5: Fuckin' UE5... #38

Manually merged
williamjcm merged 126 commits from one-point-five into master 2024-07-22 11:06:13 +02:00
Showing only changes of commit 57b4af4637 - Show all commits

View file

@ -132,14 +132,16 @@ SaveTool::drawMainMenu() {
_updateThread = std::thread{[this]{ checkForUpdates(); }};
}
if(_checker && (_checkerMutex.try_lock() && _checker->updateAvailable())) {
drawAlignedText("Version %s is available.", Containers::String{_checker->version()}.data());
if(ImGui::Button(ICON_FA_FILE_SIGNATURE " Release notes")) {
openUri("https://williamjcm.ovh/mbst");
}
ImGui::SameLine();
if(ImGui::Button(ICON_FA_DOWNLOAD " Download now")) {
openUri(_checker->downloadLink());
if(_checker && _checkerMutex.try_lock()) {
if(_checker->updateAvailable()) {
drawAlignedText("Version %s is available.", Containers::String{_checker->version()}.data());
if(ImGui::Button(ICON_FA_FILE_SIGNATURE " Release notes")) {
openUri("https://williamjcm.ovh/mbst");
}
ImGui::SameLine();
if(ImGui::Button(ICON_FA_DOWNLOAD " Download now")) {
openUri(_checker->downloadLink());
}
}
_checkerMutex.unlock();
}