mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Merge branch 'master' of https://github.com/prusa3d/Slic3r into et_bug_fixes
This commit is contained in:
		
						commit
						e0a97ce019
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		|  | @ -497,13 +497,15 @@ void TabSLAMaterial::init_options_list() | ||||||
| 
 | 
 | ||||||
| void Tab::get_sys_and_mod_flags(const std::string& opt_key, bool& sys_page, bool& modified_page) | void Tab::get_sys_and_mod_flags(const std::string& opt_key, bool& sys_page, bool& modified_page) | ||||||
| { | { | ||||||
| 	auto opt = m_options_list.find(opt_key); |     auto opt = m_options_list.find(opt_key); | ||||||
| 	if (sys_page) sys_page = (opt->second & osSystemValue) != 0; | 	if (sys_page) sys_page = (opt->second & osSystemValue) != 0; | ||||||
| 	modified_page |= (opt->second & osInitValue) == 0; | 	modified_page |= (opt->second & osInitValue) == 0; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void Tab::update_changed_tree_ui() | void Tab::update_changed_tree_ui() | ||||||
| { | { | ||||||
|  | 	if (m_options_list.empty()) | ||||||
|  |         return; | ||||||
| 	auto cur_item = m_treectrl->GetFirstVisibleItem(); | 	auto cur_item = m_treectrl->GetFirstVisibleItem(); | ||||||
|     if (!cur_item || !m_treectrl->IsVisible(cur_item)) |     if (!cur_item || !m_treectrl->IsVisible(cur_item)) | ||||||
|         return; |         return; | ||||||
|  | @ -689,9 +691,9 @@ void Tab::update_visibility() | ||||||
| 	Thaw(); | 	Thaw(); | ||||||
| 
 | 
 | ||||||
|     // to update tree items color
 |     // to update tree items color
 | ||||||
|     wxTheApp->CallAfter([this]() { | //    wxTheApp->CallAfter([this]() {
 | ||||||
|         update_changed_tree_ui(); |         update_changed_tree_ui(); | ||||||
|     }); | //     });
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| Field* Tab::get_field(const t_config_option_key& opt_key, int opt_index/* = -1*/) const | Field* Tab::get_field(const t_config_option_key& opt_key, int opt_index/* = -1*/) const | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Enrico Turri
						Enrico Turri