Preset updating: Judge dev version based on version online, not current
This commit is contained in:
parent
58d78e8dbd
commit
28d28a54bf
@ -39,8 +39,7 @@ MsgUpdateSlic3r::MsgUpdateSlic3r(const Semver &ver_current, const Semver &ver_on
|
|||||||
ver_current(ver_current),
|
ver_current(ver_current),
|
||||||
ver_online(ver_online)
|
ver_online(ver_online)
|
||||||
{
|
{
|
||||||
const auto version = Semver::parse(SLIC3R_VERSION);
|
const bool dev_version = ver_online.prerelease() != nullptr;
|
||||||
const bool dev_version = version->prerelease() != nullptr || boost::algorithm::ends_with(SLIC3R_BUILD_ID, "UNKNOWN");
|
|
||||||
|
|
||||||
auto *versions = new wxFlexGridSizer(2, 0, VERT_SPACING);
|
auto *versions = new wxFlexGridSizer(2, 0, VERT_SPACING);
|
||||||
versions->Add(new wxStaticText(this, wxID_ANY, _(L("Current version:"))));
|
versions->Add(new wxStaticText(this, wxID_ANY, _(L("Current version:"))));
|
||||||
@ -119,7 +118,7 @@ MsgUpdateConfig::MsgUpdateConfig(const std::vector<Update> &updates) :
|
|||||||
|
|
||||||
versions->Add(flex);
|
versions->Add(flex);
|
||||||
|
|
||||||
if (! update.changelog_url.empty()) {
|
if (! update.changelog_url.empty() && update.version.prerelease() == nullptr) {
|
||||||
auto *line = new wxBoxSizer(wxHORIZONTAL);
|
auto *line = new wxBoxSizer(wxHORIZONTAL);
|
||||||
auto changelog_url = (boost::format(update.changelog_url) % lang_code).str();
|
auto changelog_url = (boost::format(update.changelog_url) % lang_code).str();
|
||||||
line->AddSpacer(3*VERT_SPACING);
|
line->AddSpacer(3*VERT_SPACING);
|
||||||
|
Loading…
Reference in New Issue
Block a user