mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
Some changes to gcode window toggles (#2704)
* Show gcode window automatically (#2572) * Move the show gcode toggle to view menu, and remember if gcode window is shown last time * fix an issue when merging main branch --------- Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
parent
b86b8ea810
commit
284c3e71eb
7 changed files with 30 additions and 29 deletions
|
@ -2508,6 +2508,15 @@ void MainFrame::init_menubar_as_editor()
|
|||
else
|
||||
viewMenu->Check(wxID_CAMERA_ORTHOGONAL + camera_id_base, true);
|
||||
|
||||
viewMenu->AppendSeparator();
|
||||
append_menu_check_item(viewMenu, wxID_ANY, _L("Show &G-code Window") + "\tC", _L("Show g-code window in Previce scene"),
|
||||
[this](wxCommandEvent &) {
|
||||
wxGetApp().toggle_show_gcode_window();
|
||||
m_plater->get_current_canvas3D()->post_event(SimpleEvent(wxEVT_PAINT));
|
||||
},
|
||||
this, [this]() { return m_plater->is_preview_shown(); },
|
||||
[this]() { return wxGetApp().show_gcode_window(); }, this);
|
||||
|
||||
viewMenu->AppendSeparator();
|
||||
append_menu_check_item(viewMenu, wxID_ANY, _L("Show &Labels") + "\t" + ctrl + "E", _L("Show object labels in 3D scene"),
|
||||
[this](wxCommandEvent&) { m_plater->show_view3D_labels(!m_plater->are_view3D_labels_shown()); m_plater->get_current_canvas3D()->post_event(SimpleEvent(wxEVT_PAINT)); }, this,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue