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
2 changed files with 5 additions and 4 deletions

2
deps/spdlog vendored

View File

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