diff options
author | Vojtech Kral <vojtech@kral.hk> | 2019-03-04 18:50:43 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2019-03-05 18:12:15 +0300 |
commit | bd725a47f450f45a85b5ff2603530eee9bb7482f (patch) | |
tree | 648e5fcbf2852d63f65e35f49fa8cb1ca591565e /src/slic3r/Utils/OctoPrint.cpp | |
parent | 96d09ce0ad7dc878561b8d4c909a162941e666ce (diff) |
PrintHost: Don't offer print start for SL1
Diffstat (limited to 'src/slic3r/Utils/OctoPrint.cpp')
-rw-r--r-- | src/slic3r/Utils/OctoPrint.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/slic3r/Utils/OctoPrint.cpp b/src/slic3r/Utils/OctoPrint.cpp index 2e2e169b8..594c2e3da 100644 --- a/src/slic3r/Utils/OctoPrint.cpp +++ b/src/slic3r/Utils/OctoPrint.cpp @@ -144,6 +144,11 @@ bool OctoPrint::can_test() const return true; } +bool OctoPrint::can_start_print() const +{ + return true; +} + bool OctoPrint::validate_version_text(const boost::optional<std::string> &version_text) const { return version_text ? boost::starts_with(*version_text, "OctoPrint") : true; @@ -186,6 +191,11 @@ wxString SLAHost::get_test_failed_msg (wxString &msg) const return wxString::Format("%s: %s", _(L("Could not connect to Prusa SLA")), msg); } +bool SLAHost::can_start_print() const +{ + return false; +} + bool SLAHost::validate_version_text(const boost::optional<std::string> &version_text) const { return version_text ? boost::starts_with(*version_text, "Prusa SLA") : false; |