fix: Correct IndentationError in modules/ui.py
Removes a duplicated 'if not modules.globals.map_faces:' line within the create_webcam_preview function. This error was causing a syntax issue and preventing the application from running correctly, particularly in webcam mode.pull/1313/head
							parent
							
								
									2e617c9401
								
							
						
					
					
						commit
						3d8af5180d
					
				| 
						 | 
				
			
			@ -1013,7 +1013,6 @@ def create_webcam_preview(camera_index: int):
 | 
			
		|||
                temp_frame, PREVIEW.winfo_width(), PREVIEW.winfo_height()
 | 
			
		||||
            )
 | 
			
		||||
 | 
			
		||||
        if not modules.globals.map_faces:
 | 
			
		||||
        if not modules.globals.map_faces:
 | 
			
		||||
            # Case 1: map_faces is False - source_face_obj_for_cam and source_frame_full_for_cam are pre-loaded
 | 
			
		||||
            if source_face_obj_for_cam and source_frame_full_for_cam is not None: # Check if valid after pre-loading
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue