mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: Disable print button when gcode has conflict
Also fix a crash bug due to setStarted and setDone. Change-Id: Ib9b069fe4b7e5d1fc359f48e44b4032dd8249428 (cherry picked from commit 9ef190ed3ecd66d12617ad96e927ff34251395a2)
This commit is contained in:
@@ -90,6 +90,29 @@ namespace Slic3r {
|
||||
|
||||
struct GCodeProcessorResult
|
||||
{
|
||||
//BBS
|
||||
struct ConflictResult
|
||||
{
|
||||
bool conflicted;
|
||||
std::string obj1Name;
|
||||
std::string obj2Name;
|
||||
|
||||
void set(const std::string &o1, const std::string &o2)
|
||||
{
|
||||
conflicted = true;
|
||||
obj1Name = o1;
|
||||
obj2Name = o2;
|
||||
}
|
||||
|
||||
void reset() {
|
||||
conflicted = false;
|
||||
obj1Name.clear();
|
||||
obj2Name.clear();
|
||||
}
|
||||
|
||||
ConflictResult() = default;
|
||||
ConflictResult(const ConflictResult &) = default;
|
||||
}conflict_result;
|
||||
|
||||
struct SettingsIds
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user