1.5: Fuckin' UE5... #38
1 changed files with 10 additions and 8 deletions
|
@ -132,7 +132,8 @@ SaveTool::drawMainMenu() {
|
||||||
_updateThread = std::thread{[this]{ checkForUpdates(); }};
|
_updateThread = std::thread{[this]{ checkForUpdates(); }};
|
||||||
}
|
}
|
||||||
|
|
||||||
if(_checker && (_checkerMutex.try_lock() && _checker->updateAvailable())) {
|
if(_checker && _checkerMutex.try_lock()) {
|
||||||
|
if(_checker->updateAvailable()) {
|
||||||
drawAlignedText("Version %s is available.", Containers::String{_checker->version()}.data());
|
drawAlignedText("Version %s is available.", Containers::String{_checker->version()}.data());
|
||||||
if(ImGui::Button(ICON_FA_FILE_SIGNATURE " Release notes")) {
|
if(ImGui::Button(ICON_FA_FILE_SIGNATURE " Release notes")) {
|
||||||
openUri("https://williamjcm.ovh/mbst");
|
openUri("https://williamjcm.ovh/mbst");
|
||||||
|
@ -141,6 +142,7 @@ SaveTool::drawMainMenu() {
|
||||||
if(ImGui::Button(ICON_FA_DOWNLOAD " Download now")) {
|
if(ImGui::Button(ICON_FA_DOWNLOAD " Download now")) {
|
||||||
openUri(_checker->downloadLink());
|
openUri(_checker->downloadLink());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
_checkerMutex.unlock();
|
_checkerMutex.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue