mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
SetBackground and InitializeLoadingScreen synchronously (#20002)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user