diff options
author | bubnikv <bubnikv@gmail.com> | 2019-12-10 17:01:24 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2019-12-10 19:49:09 +0300 |
commit | d0aad74c272939f756801af33afc8374e0751b7f (patch) | |
tree | e240bea5728c900803733070522b24327a4a5b97 /src/slic3r/GUI/Preset.hpp | |
parent | ece8e06914d27409ea2ffc188b6341f08d3a2266 (diff) |
Fixed update logic to support newer index downloaded from the internet
than the index stored in the resources.
Diffstat (limited to 'src/slic3r/GUI/Preset.hpp')
-rw-r--r-- | src/slic3r/GUI/Preset.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slic3r/GUI/Preset.hpp b/src/slic3r/GUI/Preset.hpp index d381a6637..785f52c42 100644 --- a/src/slic3r/GUI/Preset.hpp +++ b/src/slic3r/GUI/Preset.hpp @@ -79,6 +79,8 @@ public: VendorProfile() {} VendorProfile(std::string id) : id(std::move(id)) {} + bool valid() const { return ! name.empty() && ! id.empty() && config_version.valid(); } + // Load VendorProfile from an ini file. // If `load_all` is false, only the header with basic info (name, version, URLs) is loaded. static VendorProfile from_ini(const boost::filesystem::path &path, bool load_all=true); |