mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 10:46:33 +02:00
SetBackground and InitializeLoadingScreen synchronously (#20002)
This commit is contained in:
@@ -86,10 +86,10 @@ namespace Microsoft.PowerToys.PreviewHandler.Monaco
|
|||||||
base.DoPreview(dataSource);
|
base.DoPreview(dataSource);
|
||||||
|
|
||||||
// Sets background color
|
// Sets background color
|
||||||
new Task(SetBackground).Start();
|
SetBackground();
|
||||||
|
|
||||||
// Starts loading screen
|
// Starts loading screen
|
||||||
new Task(InitializeLoadingScreen).Start();
|
InitializeLoadingScreen();
|
||||||
|
|
||||||
// New webview2 element
|
// New webview2 element
|
||||||
_webView = new WebView2();
|
_webView = new WebView2();
|
||||||
|
|||||||
Reference in New Issue
Block a user