null checking the callbacks (#11592)

Co-authored-by: Clint Rutkas <crutkas@microsoft.com>
This commit is contained in:
Clint Rutkas 2021-06-04 10:13:56 -07:00 committed by GitHub
parent 367b3df705
commit 17f9ee84b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

2
deps/spdlog vendored

@ -1 +1 @@
Subproject commit 616866fcf40340ea25a8f218369bad810ef58e72
Subproject commit cbe9448650176797739dbab13961ef4c07f4290f

View File

@ -83,19 +83,20 @@ namespace Microsoft.PowerToys.Settings.UI.Views
public static int SendDefaultIPCMessage(string msg)
{
DefaultSndMSGCallback(msg);
DefaultSndMSGCallback?.Invoke(msg);
return 0;
}
public static int SendCheckForUpdatesIPCMessage(string msg)
{
CheckForUpdatesMsgCallback(msg);
CheckForUpdatesMsgCallback?.Invoke(msg);
return 0;
}
public static int SendRestartAdminIPCMessage(string msg)
{
SndRestartAsAdminMsgCallback(msg);
SndRestartAsAdminMsgCallback?.Invoke(msg);
return 0;
}