mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 17:42:45 +08:00
null checking the callbacks (#11592)
Co-authored-by: Clint Rutkas <crutkas@microsoft.com>
This commit is contained in:
parent
367b3df705
commit
17f9ee84b3
2
deps/spdlog
vendored
2
deps/spdlog
vendored
@ -1 +1 @@
|
|||||||
Subproject commit 616866fcf40340ea25a8f218369bad810ef58e72
|
Subproject commit cbe9448650176797739dbab13961ef4c07f4290f
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user