Merge remote-tracking branch 'origin/ys_preset_edit_buttons' into ys_comboboxes

This commit is contained in:
YuSanka 2019-03-20 10:33:50 +01:00
commit b36e4fa512
7 changed files with 78 additions and 20 deletions

View file

@ -746,6 +746,13 @@ wxNotebook* GUI_App::tab_panel() const
return mainframe->m_tabpanel;
}
int GUI_App::extruders_cnt() const
{
const Preset& preset = preset_bundle->printers.get_selected_preset();
return preset.printer_technology() == ptSLA ? 1 :
preset.config.option<ConfigOptionFloats>("nozzle_diameter")->values.size();
}
void GUI_App::window_pos_save(wxTopLevelWindow* window, const std::string &name)
{
if (name.empty()) { return; }