File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2525logger = logging .getLogger (__name__ )
2626
2727
28- def _find_window (process : psutil .Process ):
29- for i in range (0 , 30 ):
28+ def _find_window (process : psutil .Process , timeout : int = 30 ):
29+ for i in range (0 , timeout ):
3030 windows = findwindows .find_elements (title_re = "DCS Updater *" , top_level_only = False )
3131 window = next ((window for window in windows if len (window .children ()) > 6 ), None )
3232 if window :
@@ -88,7 +88,7 @@ def uia_wrapper_from_handle(handle):
8888 repair_btn .invoke ()
8989
9090 # close the OK message
91- window = _find_window (process )
91+ window = _find_window (process , timeout = 1800 if slow else 180 )
9292 dlg = app .window (handle = window .handle )
9393 dlg .wait ('ready' , timeout = 15 )
9494 ok_btn = uia_wrapper_from_handle (dlg .children ()[0 ].handle )
You can’t perform that action at this time.
0 commit comments