mirror of
				https://github.com/Wan-Video/Wan2.1.git
				synced 2025-11-04 06:15:17 +00:00 
			
		
		
		
	Fix continuous GUI status display issue
Fixed incorrect logic in refresh_status_async function that was causing
continuous status updates. Changed condition from 'status == None or len(status) > 0'
to 'status is not None and len(status) > 0' to only yield when there's
actually a meaningful status to display.
This resolves the display issue that started appearing after commit 799c3a2.
			
			
This commit is contained in:
		
							parent
							
								
									799c3a2e5e
								
							
						
					
					
						commit
						641cdcb7ed
					
				
							
								
								
									
										2
									
								
								wgp.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								wgp.py
									
									
									
									
									
								
							@ -8514,7 +8514,7 @@ def generate_video_tab(update_form = False, state_dict = None, ui_defaults = Non
 | 
				
			|||||||
                        progress(*progress_args)
 | 
					                        progress(*progress_args)
 | 
				
			||||||
                        gen["progress_args"] = None
 | 
					                        gen["progress_args"] = None
 | 
				
			||||||
                    status= gen.get("status","")
 | 
					                    status= gen.get("status","")
 | 
				
			||||||
                    if status == None or len(status) > 0:
 | 
					                    if status is not None and len(status) > 0:
 | 
				
			||||||
                        yield status
 | 
					                        yield status
 | 
				
			||||||
                        gen["status"]= ""
 | 
					                        gen["status"]= ""
 | 
				
			||||||
                    if not gen.get("status_display", False):
 | 
					                    if not gen.get("status_display", False):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user