File tree Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Expand file tree Collapse file tree 1 file changed +2
-16
lines changed Original file line number Diff line number Diff line change @@ -46,12 +46,9 @@ await Application.Current.Dispatcher.InvokeAsync(() =>
46
46
{
47
47
if ( ! Application . Current . Dispatcher . CheckAccess ( ) )
48
48
{
49
- await Application . Current . Dispatcher . InvokeAsync ( async ( ) =>
49
+ await Application . Current . Dispatcher . InvokeAsync ( ( ) =>
50
50
{
51
- if ( prgBox != null )
52
- {
53
- await prgBox . CloseAsync ( ) ;
54
- }
51
+ prgBox ? . Close ( ) ;
55
52
} ) ;
56
53
}
57
54
}
@@ -80,17 +77,6 @@ private void ReportProgress(double progress)
80
77
}
81
78
}
82
79
83
- private async Task CloseAsync ( )
84
- {
85
- if ( ! Application . Current . Dispatcher . CheckAccess ( ) )
86
- {
87
- await Application . Current . Dispatcher . InvokeAsync ( Close ) ;
88
- return ;
89
- }
90
-
91
- Close ( ) ;
92
- }
93
-
94
80
private void KeyEsc_OnPress ( object sender , ExecutedRoutedEventArgs e )
95
81
{
96
82
ForceClose ( ) ;
You can’t perform that action at this time.
0 commit comments