mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-19 23:01:22 -06:00
Add a new placehoder is_extruder_used
for IDEX printers (#951)
* add placeholder 'is_extruder_used' for IDEX * fix code_font using fixed-width font * fix cmd+shift+g
This commit is contained in:
parent
d192a8cc61
commit
4481fe62b5
3 changed files with 14 additions and 3 deletions
|
@ -511,8 +511,9 @@ void TextCtrl::BUILD() {
|
|||
m_combine_side_text = !m_opt.multiline;
|
||||
if (parent_is_custom_ctrl && m_opt.height < 0)
|
||||
opt_height = (double) text_ctrl->GetSize().GetHeight() / m_em_unit;
|
||||
if (m_opt.is_code) // BBS
|
||||
temp->SetFont(Slic3r::GUI::wxGetApp().normal_font());
|
||||
temp->SetFont(m_opt.is_code ?
|
||||
Slic3r::GUI::wxGetApp().code_font() :
|
||||
Slic3r::GUI::wxGetApp().normal_font());
|
||||
|
||||
wxGetApp().UpdateDarkUI(temp);
|
||||
|
||||
|
|
|
@ -542,7 +542,11 @@ DPIFrame(NULL, wxID_ANY, "", wxDefaultPosition, wxDefaultSize, BORDERLESS_FRAME_
|
|||
m_print_enable = get_enable_print_status();
|
||||
m_print_btn->Enable(m_print_enable);
|
||||
if (m_print_enable) {
|
||||
wxPostEvent(m_plater, SimpleEvent(EVT_GLTOOLBAR_PRINT_PLATE));
|
||||
PresetBundle &preset_bundle = *wxGetApp().preset_bundle;
|
||||
if (preset_bundle.printers.get_edited_preset().is_bbl_vendor_preset(&preset_bundle))
|
||||
wxPostEvent(m_plater, SimpleEvent(EVT_GLTOOLBAR_PRINT_PLATE));
|
||||
else
|
||||
wxPostEvent(m_plater, SimpleEvent(EVT_GLTOOLBAR_SEND_GCODE));
|
||||
}
|
||||
evt.Skip();
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue