mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-01 09:59:06 +08:00
fixed unit tests (#4865)
This commit is contained in:
parent
ac5a3e7a65
commit
e3e6b23b7c
@ -465,9 +465,12 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
public void RaisePropertyChanged([CallerMemberName] string propertyName = null)
|
||||
{
|
||||
OnPropertyChanged(propertyName);
|
||||
SndFancyZonesSettings outsettings = new SndFancyZonesSettings(Settings);
|
||||
SndModuleSettings<SndFancyZonesSettings> ipcMessage = new SndModuleSettings<SndFancyZonesSettings>(outsettings);
|
||||
ShellPage.DefaultSndMSGCallback(ipcMessage.ToJsonString());
|
||||
if (ShellPage.DefaultSndMSGCallback != null)
|
||||
{
|
||||
SndFancyZonesSettings outsettings = new SndFancyZonesSettings(Settings);
|
||||
SndModuleSettings<SndFancyZonesSettings> ipcMessage = new SndModuleSettings<SndFancyZonesSettings>(outsettings);
|
||||
ShellPage.DefaultSndMSGCallback(ipcMessage.ToJsonString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -43,6 +43,8 @@ namespace ViewModelTests
|
||||
{
|
||||
DeleteFolder(ModuleName);
|
||||
}
|
||||
|
||||
ShellPage.DefaultSndMSGCallback = null;
|
||||
}
|
||||
|
||||
public void DeleteFolder(string powertoy)
|
||||
|
Loading…
Reference in New Issue
Block a user