mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-21 01:43:13 +08:00
FIX: crash at switching dark mode or changing screen dpi
Jira: STUDIO-4676 Change-Id: Iaeffc7293361a12fcb80f170fc3efa4ebb272c47
This commit is contained in:
parent
47edbfb34f
commit
80ac7b6fdd
@ -2084,6 +2084,7 @@ void MainFrame::on_sys_color_changed()
|
|||||||
tab->sys_color_changed();
|
tab->sys_color_changed();
|
||||||
for (auto tab : wxGetApp().model_tabs_list)
|
for (auto tab : wxGetApp().model_tabs_list)
|
||||||
tab->sys_color_changed();
|
tab->sys_color_changed();
|
||||||
|
wxGetApp().plate_tab->sys_color_changed();
|
||||||
|
|
||||||
MenuFactory::sys_color_changed(m_menubar);
|
MenuFactory::sys_color_changed(m_menubar);
|
||||||
|
|
||||||
|
@ -933,8 +933,14 @@ void Tab::get_sys_and_mod_flags(const std::string& opt_key, bool& sys_page, bool
|
|||||||
|
|
||||||
void Tab::update_changed_tree_ui()
|
void Tab::update_changed_tree_ui()
|
||||||
{
|
{
|
||||||
if (m_options_list.empty())
|
if (m_options_list.empty()) {
|
||||||
|
if (m_type == Preset::Type::TYPE_PLATE) {
|
||||||
|
for (auto page : m_pages) {
|
||||||
|
page->m_is_nonsys_values = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
auto cur_item = m_tabctrl->GetFirstVisibleItem();
|
auto cur_item = m_tabctrl->GetFirstVisibleItem();
|
||||||
if (cur_item < 0 || !m_tabctrl->IsVisible(cur_item))
|
if (cur_item < 0 || !m_tabctrl->IsVisible(cur_item))
|
||||||
return;
|
return;
|
||||||
@ -2475,7 +2481,7 @@ void TabPrintPlate::build()
|
|||||||
m_config->option("first_layer_sequence_choice", true);
|
m_config->option("first_layer_sequence_choice", true);
|
||||||
m_config->option("first_layer_print_sequence", true);
|
m_config->option("first_layer_print_sequence", true);
|
||||||
|
|
||||||
auto page = add_options_page(L("Plate Settings"), "");
|
auto page = add_options_page(L("Plate Settings"), "empty");
|
||||||
auto optgroup = page->new_optgroup("");
|
auto optgroup = page->new_optgroup("");
|
||||||
optgroup->append_single_option_line("curr_bed_type");
|
optgroup->append_single_option_line("curr_bed_type");
|
||||||
optgroup->append_single_option_line("print_sequence");
|
optgroup->append_single_option_line("print_sequence");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user