mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 12:41:20 -06:00 
			
		
		
		
	ENH: disable buttons when printing job is finished
Change-Id: Ic3ead6c1204ca30e4478db63cff12ca070790db2 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
		
							parent
							
								
									45d2081a08
								
							
						
					
					
						commit
						654dd34652
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		|  | @ -1556,8 +1556,13 @@ void StatusPanel::update_subtask(MachineObject *obj) | |||
|                 m_button_pause_resume->SetLabel(_L("Resume")); | ||||
|             else | ||||
|                 m_button_pause_resume->SetLabel(_L("Pause")); | ||||
|             m_button_abort->Enable(true); | ||||
|             m_button_pause_resume->Enable(true); | ||||
|             if (obj->print_status == "FINISH") { | ||||
|                 m_button_abort->Enable(false); | ||||
|                 m_button_pause_resume->Enable(false); | ||||
|             } else { | ||||
|                 m_button_abort->Enable(true); | ||||
|                 m_button_pause_resume->Enable(true); | ||||
|             } | ||||
|             // update printing stage
 | ||||
|             m_printing_stage_value->SetLabelText(obj->get_curr_stage()); | ||||
|             update_left_time(obj->mc_left_time); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Stone Li
						Stone Li