mirror of
https://github.com/azahar-emu/azahar
synced 2025-11-06 23:19:57 +01:00
update_checker.cpp: Add alpha and beta substrings to prerelease detection logic
This commit is contained in:
parent
2aa29a62cc
commit
95eb701e12
@ -400,7 +400,9 @@ GMainWindow::GMainWindow(Core::System& system_)
|
|||||||
if (UISettings::values.check_for_update_on_start) {
|
if (UISettings::values.check_for_update_on_start) {
|
||||||
update_future = QtConcurrent::run([]() -> QString {
|
update_future = QtConcurrent::run([]() -> QString {
|
||||||
const bool is_prerelease = // TODO: This can be done better -OS
|
const bool is_prerelease = // TODO: This can be done better -OS
|
||||||
(strstr(Common::g_build_fullname, "rc") != NULL);
|
((strstr(Common::g_build_fullname, "alpha") != NULL) ||
|
||||||
|
(strstr(Common::g_build_fullname, "beta") != NULL) ||
|
||||||
|
(strstr(Common::g_build_fullname, "rc") != NULL));
|
||||||
const std::optional<std::string> latest_release_tag =
|
const std::optional<std::string> latest_release_tag =
|
||||||
UpdateChecker::GetLatestRelease(is_prerelease);
|
UpdateChecker::GetLatestRelease(is_prerelease);
|
||||||
if (latest_release_tag && latest_release_tag.value() != Common::g_build_fullname) {
|
if (latest_release_tag && latest_release_tag.value() != Common::g_build_fullname) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user