mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Fix for - Profile save dialog should appear when application is closed and when don't save project is selected
Note: show UnsavedChangesDialog even if there is an object in the scene
This commit is contained in:
		
							parent
							
								
									a5ebd45d4d
								
							
						
					
					
						commit
						c0a00f4e70
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -2059,7 +2059,7 @@ std::vector<std::pair<unsigned int, std::string>> GUI_App::get_selected_presets( | |||
| // to notify the user whether he is aware that some preset changes will be lost.
 | ||||
| bool GUI_App::check_and_save_current_preset_changes(const wxString& header) | ||||
| { | ||||
|     if (this->plater()->model().objects.empty() && has_current_preset_changes()) { | ||||
|     if (/*this->plater()->model().objects.empty() && */has_current_preset_changes()) { | ||||
|         UnsavedChangesDialog dlg(header); | ||||
|         if (wxGetApp().app_config->get("default_action_on_close_application") == "none" && dlg.ShowModal() == wxID_CANCEL) | ||||
|             return false; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 YuSanka
						YuSanka