mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-30 20:21:12 -06:00 
			
		
		
		
	Show the name of the loaded G-code in the application title bar
This commit is contained in:
		
							parent
							
								
									9dbc0c6ba2
								
							
						
					
					
						commit
						6bf839b315
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -4729,9 +4729,13 @@ void Plater::load_gcode(const wxString& filename) | |||
|     p->preview->reload_print(false); | ||||
|     p->preview->get_canvas3d()->zoom_to_gcode(); | ||||
| 
 | ||||
|     if (p->preview->get_canvas3d()->get_gcode_layers_zs().empty()) | ||||
|     if (p->preview->get_canvas3d()->get_gcode_layers_zs().empty()) { | ||||
|         wxMessageDialog(this, _L("The selected file") + ":\n" + filename + "\n" + _L("does not contain valid gcode."), | ||||
|             wxString(GCODEVIEWER_APP_NAME) + " - " + _L("Error while loading .gcode file"), wxCLOSE | wxICON_WARNING | wxCENTRE).ShowModal(); | ||||
|         set_project_filename(wxEmptyString); | ||||
|     } | ||||
|     else | ||||
|         set_project_filename(filename); | ||||
| } | ||||
| 
 | ||||
| void Plater::refresh_print() | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 enricoturri1966
						enricoturri1966