FIX: .gcode file shall disable preview menu (STUDIO-2320)

https://jira.bambooolab.com/browse/STUDIO-2320

Change-Id: I54cd49a49a8b08916872eae75534ef4c1d915cb5
This commit is contained in:
liz.li 2023-03-06 18:39:23 +08:00 committed by Lane.Wei
parent ede8a2dc30
commit 1beee1eebf
3 changed files with 14 additions and 1 deletions

View file

@ -129,6 +129,7 @@ public:
float m_scale = 1.0;
void set_scale(float scale = 1.0);
void on_change_color_mode(bool is_dark);
void set_menu_enable(bool enable = true) { m_menu_enable = enable; }
protected:
void add_custom_gcode(std::string custom_gcode);
@ -179,7 +180,8 @@ private:
bool m_is_right_down = false;
bool m_is_one_layer = false;
bool m_is_focused = false;
bool m_show_menu = false;
bool m_show_menu = false;
bool m_menu_enable = true;
bool m_show_custom_gcode_window = false;
bool m_show_go_to_layer_dialog = false;
bool m_force_mode_apply = true;