mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Weird things happen as the Paint messages are floating around the windows being destructed.
Avoid the Paint messages by hiding the main window. Also the application closes much faster without these unnecessary screen refreshes. In addition, there were some crashes due to the Paint events sent to already destructed windows.
This commit is contained in:
		
							parent
							
								
									2fab555daf
								
							
						
					
					
						commit
						20be57dc58
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -96,6 +96,12 @@ wxFrame(NULL, wxID_ANY, SLIC3R_BUILD, wxDefaultPosition, wxDefaultSize, wxDEFAUL | |||
|             return; | ||||
|         } | ||||
| 
 | ||||
|         // Weird things happen as the Paint messages are floating around the windows being destructed.
 | ||||
|         // Avoid the Paint messages by hiding the main window.
 | ||||
|         // Also the application closes much faster without these unnecessary screen refreshes.
 | ||||
|         // In addition, there were some crashes due to the Paint events sent to already destructed windows.
 | ||||
|         this->Show(false); | ||||
| 
 | ||||
|         // Save the slic3r.ini.Usually the ini file is saved from "on idle" callback,
 | ||||
|         // but in rare cases it may not have been called yet.
 | ||||
|         wxGetApp().app_config->save(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv