File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1602,11 +1602,14 @@ public async void SetupQuickSwitch(nint handle)
16021602 PreviousMainWindowVisibilityStatus = MainWindowVisibilityStatus ;
16031603 DialogWindowHandle = handle ;
16041604 IsQuickSwitch = true ;
1605- }
16061605
1607- await Task . Delay ( 300 ) ; // If don't give a time, Positioning will be weird.
1606+ // Wait for a while to make sure the dialog is shown
1607+ // If don't give a time, Positioning will be weird
1608+ await Task . Delay ( 300 ) ;
1609+ }
16081610
1609- if ( DialogWindowHandle == nint . Zero ) return ; // If handle is cleared, which means the dialog is closed, do nothing
1611+ // If handle is cleared, which means the dialog is closed, do nothing
1612+ if ( DialogWindowHandle == nint . Zero ) return ;
16101613
16111614 if ( MainWindowVisibilityStatus )
16121615 {
You can’t perform that action at this time.
0 commit comments