mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
PrintHost: Don't offer print start for SL1
This commit is contained in:
parent
96d09ce0ad
commit
bd725a47f4
9 changed files with 36 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue