mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -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
|
@ -988,6 +988,12 @@ static void generic_exception_handle()
|
|||
//#endif
|
||||
}
|
||||
|
||||
void GUI_App::toggle_show_gcode_window()
|
||||
{
|
||||
m_show_gcode_window = !m_show_gcode_window;
|
||||
app_config->set_bool("show_gcode_window", m_show_gcode_window);
|
||||
}
|
||||
|
||||
std::vector<std::string> GUI_App::split_str(std::string src, std::string separator)
|
||||
{
|
||||
std::string::size_type pos;
|
||||
|
@ -1165,7 +1171,7 @@ void GUI_App::post_init()
|
|||
if (app_config->get("stealth_mode") == "false")
|
||||
hms_query = new HMSQuery();
|
||||
|
||||
m_show_gcode_window = app_config->get("show_gcode_window") == "true";
|
||||
m_show_gcode_window = app_config->get_bool("show_gcode_window");
|
||||
if (m_networking_need_update) {
|
||||
//updating networking
|
||||
int ret = updating_bambu_networking();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue