SEBWIN-611: Forgot to invoke lockscreen re-initialization on dispatcher.

This commit is contained in:
Damian Büchel 2023-02-16 22:18:47 +01:00
parent 2aaa74c7b0
commit f57771fda9

View file

@ -70,16 +70,19 @@ namespace SafeExamBrowser.UserInterface.Desktop.Windows
public void InitializeBounds() public void InitializeBounds()
{ {
foreach (var window in windows) Dispatcher.Invoke(() =>
{ {
window.Topmost = true; foreach (var window in windows)
window.WindowState = WindowState.Maximized; {
window.Activate(); window.Topmost = true;
} window.WindowState = WindowState.Maximized;
window.Activate();
}
Topmost = true; Topmost = true;
WindowState = WindowState.Maximized; WindowState = WindowState.Maximized;
Activate(); Activate();
});
} }
public new void Show() public new void Show()