mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	ENH: reorder the judgement when sending print job
Change-Id: I1a33bba1d33388a61d12c00a11e84c2ee5c00287 Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
		
							parent
							
								
									3c386f3739
								
							
						
					
					
						commit
						3f9c74c86e
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		|  | @ -892,6 +892,12 @@ void SendToPrinterDialog::update_show_status() | |||
| 
 | ||||
|     reset_timeout(); | ||||
| 
 | ||||
|     bool is_suppt = obj_->is_function_supported(PrinterFunction::FUNC_SEND_TO_SDCARD); | ||||
|     if (!is_suppt) { | ||||
|         show_status(PrintDialogStatus::PrintStatusNotSupportedSendToSDCard); | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     // reading done
 | ||||
|     if (obj_->is_in_upgrading()) { | ||||
|         show_status(PrintDialogStatus::PrintStatusInUpgrading); | ||||
|  | @ -914,12 +920,6 @@ void SendToPrinterDialog::update_show_status() | |||
|         show_status(PrintDialogStatus::PrintStatusNotOnTheSameLAN); | ||||
|         return; | ||||
|     } | ||||
| 
 | ||||
|     bool is_suppt = obj_->is_function_supported(PrinterFunction::FUNC_SEND_TO_SDCARD); | ||||
|     if (!is_suppt) { | ||||
|         show_status(PrintDialogStatus::PrintStatusNotSupportedSendToSDCard); | ||||
|         return; | ||||
|     } | ||||
|      | ||||
|     show_status(PrintDialogStatus::PrintStatusReadingFinished); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Stone Li
						Stone Li