mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-27 02:31:10 -06:00
SLA only mode in wizard
Activates only if PrusaSlicer.ini does NOT contains any FFF printers. Added only_default_printers() function to activate wizard if none printers are installed.
This commit is contained in:
parent
e324643a04
commit
217bcfd37d
5 changed files with 62 additions and 30 deletions
|
|
@ -1379,6 +1379,14 @@ const Preset* PrinterPresetCollection::find_system_preset_by_model_and_variant(c
|
|||
return it != cend() ? &*it : nullptr;
|
||||
}
|
||||
|
||||
bool PrinterPresetCollection::only_default_printers() const
|
||||
{
|
||||
for (const auto& printer : get_presets()) {
|
||||
if (!boost::starts_with(printer.name,"- default"))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
// -------------------------
|
||||
// *** PhysicalPrinter ***
|
||||
// -------------------------
|
||||
|
|
|
|||
|
|
@ -597,6 +597,7 @@ public:
|
|||
|
||||
const Preset* find_system_preset_by_model_and_variant(const std::string &model_id, const std::string &variant) const;
|
||||
|
||||
bool only_default_printers() const;
|
||||
private:
|
||||
PrinterPresetCollection() = default;
|
||||
PrinterPresetCollection(const PrinterPresetCollection &other) = default;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue