File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -258,23 +258,7 @@ await newView.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
258
258
if ( success )
259
259
{
260
260
Views . Add ( newViewId , frontend ) ;
261
- var taskCompletionSource = new TaskCompletionSource < bool > ( ) ;
262
- await newView . Dispatcher . RunAsync ( CoreDispatcherPriority . Normal , async ( ) =>
263
- {
264
- try
265
- {
266
- await switcher . ShowAsStandaloneAsync ( newViewId ) ;
267
- }
268
- catch ( Exception e )
269
- {
270
- Logger . LogError ( "CreateSecondaryWindowOrShowMain() ShowAsStandaloneAsync() failed: {0}\n {1}" , e . Message , e . StackTrace ) ;
271
- }
272
- finally
273
- {
274
- taskCompletionSource . SetResult ( false ) ;
275
- }
276
- } ) ;
277
- await taskCompletionSource . Task ;
261
+ await switcher . ShowAsStandaloneAsync ( newViewId ) ;
278
262
Logger . LogInformation ( "CreateSecondaryWindow() added view {0}" , newViewId ) ;
279
263
}
280
264
else
You can’t perform that action at this time.
0 commit comments