SendSystemInfo: Show also in alphas, fixed alpha detection

This commit is contained in:
Lukas Matena 2021-10-12 15:34:41 +02:00
parent 1afa18d719
commit 99bf3d0a25

View File

@ -142,8 +142,12 @@ static bool should_dialog_be_shown()
if (! last_sent_version.empty()) if (! last_sent_version.empty())
semver_last_sent = Semver(last_sent_version); semver_last_sent = Semver(last_sent_version);
// if (semver_current.prerelease() && std::string(semver_current.prerelease()) == "alpha") // set whether to show in alpha builds, or only betas/rcs/finals:
// return false; // Don't show in alphas. const bool show_in_alphas = true;
if (! show_in_alphas && semver_current.prerelease()
&& std::string(semver_current.prerelease()).find("alpha") != std::string::npos)
return false;
// New version means current > last, but they must differ in more than just patch. // New version means current > last, but they must differ in more than just patch.
bool new_version = ((semver_current.maj() > semver_last_sent.maj()) bool new_version = ((semver_current.maj() > semver_last_sent.maj())