mirror of
https://github.com/azahar-emu/azahar.git
synced 2026-07-11 01:34:03 +02:00
update_checker.cpp: Add alpha and beta substrings to prerelease detection logic
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user