SetBackground and InitializeLoadingScreen synchronously (#20002)

This commit is contained in:
Stefan Markovic
2022-08-19 19:37:05 +02:00
committed by GitHub
parent bbd108be7e
commit de72a9860d

View File

@@ -86,10 +86,10 @@ namespace Microsoft.PowerToys.PreviewHandler.Monaco
base.DoPreview(dataSource);
// Sets background color
new Task(SetBackground).Start();
SetBackground();
// Starts loading screen
new Task(InitializeLoadingScreen).Start();
InitializeLoadingScreen();
// New webview2 element
_webView = new WebView2();