mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-06-06 02:33:44 -04:00
update_checker.cpp: Add alpha and beta substrings to prerelease detection logic
This commit is contained in:
parent
2aa29a62cc
commit
95eb701e12
1 changed files with 3 additions and 1 deletions
|
|
@ -400,7 +400,9 @@ GMainWindow::GMainWindow(Core::System& system_)
|
|||
if (UISettings::values.check_for_update_on_start) {
|
||||
update_future = QtConcurrent::run([]() -> QString {
|
||||
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 =
|
||||
UpdateChecker::GetLatestRelease(is_prerelease);
|
||||
if (latest_release_tag && latest_release_tag.value() != Common::g_build_fullname) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue