mirror of
https://github.com/microsoft/PowerToys
synced 2025-09-01 15:05:12 +00:00
null checking the callbacks (#11592)
Co-authored-by: Clint Rutkas <crutkas@microsoft.com>
This commit is contained in:
2
deps/spdlog
vendored
2
deps/spdlog
vendored
Submodule deps/spdlog updated: 616866fcf4...cbe9448650
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user