mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Changed app title when the current project is modified and non yet named
This commit is contained in:
		
							parent
							
								
									fb1334af85
								
							
						
					
					
						commit
						1f8b134a77
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -618,8 +618,11 @@ void MainFrame::update_title() | |||
|         // Don't try to remove the extension, it would remove part of the file name after the last dot!
 | ||||
|         wxString project = from_path(into_path(m_plater->get_project_filename()).filename()); | ||||
|         wxString dirty_marker = (!m_plater->model().objects.empty() && m_plater->is_project_dirty()) ? "*" : ""; | ||||
|         if (!dirty_marker.empty() || !project.empty()) | ||||
|             title = dirty_marker + project + " - "; | ||||
|         if (!dirty_marker.empty() || !project.empty()) { | ||||
|             if (!dirty_marker.empty() && project.empty()) | ||||
|                 project = _("Untitled"); | ||||
|                 title = dirty_marker + project + " - "; | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     std::string build_id = wxGetApp().is_editor() ? SLIC3R_BUILD_ID : GCODEVIEWER_BUILD_ID; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 enricoturri1966
						enricoturri1966