mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 16:27:54 -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
|
@ -681,11 +681,6 @@ wxBoxSizer *PreferencesDialog::create_item_checkbox(wxString title, wxWindow *pa
|
|||
}
|
||||
}
|
||||
|
||||
if (param == "show_gcode_window") {
|
||||
bool pbool = app_config->get("show_gcode_window") == "true" ? true : false;
|
||||
wxGetApp().set_show_gcode_window(pbool);
|
||||
}
|
||||
|
||||
#endif // __WXMSW__
|
||||
|
||||
if (param == "developer_mode")
|
||||
|
@ -987,7 +982,6 @@ wxWindow* PreferencesDialog::create_general_page()
|
|||
|
||||
auto item_show_splash_screen = create_item_checkbox(_L("Show splash screen"), page, _L("Show the splash screen during startup."), 50, "show_splash_screen");
|
||||
auto item_hints = create_item_checkbox(_L("Show \"Tip of the day\" notification after start"), page, _L("If enabled, useful hints are displayed at startup."), 50, "show_hints");
|
||||
auto item_gcode_window = create_item_checkbox(_L("Show g-code window"), page, _L("If enabled, g-code window will be displayed."), 50, "show_gcode_window");
|
||||
|
||||
auto title_presets = create_item_title(_L("Presets"), page, _L("Presets"));
|
||||
auto item_user_sync = create_item_checkbox(_L("Auto sync user presets(Printer/Filament/Process)"), page, _L("User Sync"), 50, "sync_user_preset");
|
||||
|
@ -1048,7 +1042,6 @@ wxWindow* PreferencesDialog::create_general_page()
|
|||
sizer_page->Add(item_use_free_camera_settings, 0, wxTOP, FromDIP(3));
|
||||
sizer_page->Add(item_show_splash_screen, 0, wxTOP, FromDIP(3));
|
||||
sizer_page->Add(item_hints, 0, wxTOP, FromDIP(3));
|
||||
sizer_page->Add(item_gcode_window, 0, wxTOP, FromDIP(3));
|
||||
sizer_page->Add(title_presets, 0, wxTOP | wxEXPAND, FromDIP(20));
|
||||
sizer_page->Add(item_stealth_mode, 0, wxTOP, FromDIP(3));
|
||||
sizer_page->Add(item_user_sync, 0, wxTOP, FromDIP(3));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue