mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 12:41:20 -06:00 
			
		
		
		
	Follow-up 6effa30322 : Fixed a crash of stand-along GcodeViewer
				
					
				
			when open/close Preferences
This commit is contained in:
		
							parent
							
								
									125fcd0623
								
							
						
					
					
						commit
						b166bd7845
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -388,9 +388,10 @@ void PreferencesDialog::accept() | |||
| 		app_config->set(it->first, it->second); | ||||
| 
 | ||||
| 	app_config->save(); | ||||
| 
 | ||||
| 	wxGetApp().set_label_clr_sys(m_sys_colour->GetColour()); | ||||
| 	wxGetApp().set_label_clr_modified(m_mod_colour->GetColour()); | ||||
| 	if (wxGetApp().is_editor()) { | ||||
| 		wxGetApp().set_label_clr_sys(m_sys_colour->GetColour()); | ||||
| 		wxGetApp().set_label_clr_modified(m_mod_colour->GetColour()); | ||||
| 	} | ||||
| 
 | ||||
| 	EndModal(wxID_OK); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 YuSanka
						YuSanka