mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Merge remote-tracking branch 'origin/master' into ys_hdpi
This commit is contained in:
commit
1b5c118fd0
11 changed files with 317 additions and 121 deletions
|
@ -499,8 +499,6 @@ void TabSLAMaterial::init_options_list()
|
|||
|
||||
void Tab::get_sys_and_mod_flags(const std::string& opt_key, bool& sys_page, bool& modified_page)
|
||||
{
|
||||
if (m_options_list.empty())
|
||||
return;
|
||||
auto opt = m_options_list.find(opt_key);
|
||||
if (sys_page) sys_page = (opt->second & osSystemValue) != 0;
|
||||
modified_page |= (opt->second & osInitValue) == 0;
|
||||
|
@ -508,6 +506,8 @@ void Tab::get_sys_and_mod_flags(const std::string& opt_key, bool& sys_page, bool
|
|||
|
||||
void Tab::update_changed_tree_ui()
|
||||
{
|
||||
if (m_options_list.empty())
|
||||
return;
|
||||
auto cur_item = m_treectrl->GetFirstVisibleItem();
|
||||
if (!cur_item || !m_treectrl->IsVisible(cur_item))
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue