SEBWIN-419: Attempt to fix desktop reinitalization issue when closing / opening laptop.
This commit is contained in:
parent
8349aa5e38
commit
f2be4495c4
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@
|
|||
*/
|
||||
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using Microsoft.Win32;
|
||||
using SafeExamBrowser.Logging.Contracts;
|
||||
|
@ -68,7 +69,7 @@ namespace SafeExamBrowser.Monitoring.Display
|
|||
private void SystemEvents_DisplaySettingsChanged(object sender, EventArgs e)
|
||||
{
|
||||
logger.Info("Display change detected!");
|
||||
DisplayChanged?.Invoke();
|
||||
Task.Run(() => DisplayChanged?.Invoke());
|
||||
}
|
||||
|
||||
private void InitializeWorkingArea(int taskbarHeight)
|
||||
|
|
Loading…
Add table
Reference in a new issue