Updating: dev_version based on build_id as well
This commit is contained in:
parent
6c5bdeadc3
commit
11662f87b8
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <cstring>
|
||||
#include <boost/format.hpp>
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
|
||||
#include <wx/settings.h>
|
||||
#include <wx/sizer.h>
|
||||
|
@ -39,7 +40,7 @@ MsgUpdateSlic3r::MsgUpdateSlic3r(const Semver &ver_current, const Semver &ver_on
|
|||
ver_online(ver_online)
|
||||
{
|
||||
const auto version = Semver::parse(SLIC3R_VERSION);
|
||||
const bool dev_version = version->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);
|
||||
versions->Add(new wxStaticText(this, wxID_ANY, _(L("Current version:"))));
|
||||
|
|
Loading…
Reference in a new issue