Shift to detect nullable (#10627)

This commit is contained in:
Clint Rutkas
2021-04-07 02:54:15 -07:00
committed by GitHub
parent 304ba8c6bb
commit 353ca842ad

View File

@@ -79,7 +79,7 @@ namespace PowerToys.Settings
// send IPC Message
ShellPage.SetRestartAdminSndMessageCallback(msg =>
{
Program.GetTwoWayIPCManager().Send(msg);
Program.GetTwoWayIPCManager()?.Send(msg);
isOpen = false;
System.Windows.Application.Current.Shutdown(); // close application
});
@@ -87,7 +87,7 @@ namespace PowerToys.Settings
// send IPC Message
ShellPage.SetCheckForUpdatesMessageCallback(msg =>
{
Program.GetTwoWayIPCManager().Send(msg);
Program.GetTwoWayIPCManager()?.Send(msg);
});
// open oobe