Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kocik <kocikdav@gmail.com>2020-02-04 17:24:35 +0300
committerDavid Kocik <kocikdav@gmail.com>2020-02-04 17:27:11 +0300
commit65b9ef6636dbee66aeced9b4d0c7f6288e532bfd (patch)
tree84bf45abb8a0940f0a69dddaec68620a8f576068 /src/slic3r/Config
parent617912ecc1c380707fbfe5f9349af64d32b196d9 (diff)
configuration updater
forced update dialog check for updates button check address when downloading bundles
Diffstat (limited to 'src/slic3r/Config')
-rw-r--r--src/slic3r/Config/Version.cpp4
-rw-r--r--src/slic3r/Config/Version.hpp1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/slic3r/Config/Version.cpp b/src/slic3r/Config/Version.cpp
index 2104a6eea..2d036e9f3 100644
--- a/src/slic3r/Config/Version.cpp
+++ b/src/slic3r/Config/Version.cpp
@@ -66,6 +66,10 @@ bool Version::is_current_slic3r_supported() const
return this->is_slic3r_supported(Slic3r::SEMVER);
}
+bool Version::is_current_slic3r_downgrade() const
+{
+ return Slic3r::SEMVER < min_slic3r_version;
+}
#if 0
//TODO: This test should be moved to a unit test, once we have C++ unit tests in place.
static int version_test()
diff --git a/src/slic3r/Config/Version.hpp b/src/slic3r/Config/Version.hpp
index e5f1a2e21..881b856ff 100644
--- a/src/slic3r/Config/Version.hpp
+++ b/src/slic3r/Config/Version.hpp
@@ -29,6 +29,7 @@ struct Version
bool is_slic3r_supported(const Semver &slicer_version) const;
bool is_current_slic3r_supported() const;
+ bool is_current_slic3r_downgrade() const;
};
// Index of vendor specific config bundle versions and Slic3r compatibilities.