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)
|
public void RaisePropertyChanged([CallerMemberName] string propertyName = null)
|
||||||
{
|
{
|
||||||
OnPropertyChanged(propertyName);
|
OnPropertyChanged(propertyName);
|
||||||
SndFancyZonesSettings outsettings = new SndFancyZonesSettings(Settings);
|
if (ShellPage.DefaultSndMSGCallback != null)
|
||||||
SndModuleSettings<SndFancyZonesSettings> ipcMessage = new SndModuleSettings<SndFancyZonesSettings>(outsettings);
|
{
|
||||||
ShellPage.DefaultSndMSGCallback(ipcMessage.ToJsonString());
|
SndFancyZonesSettings outsettings = new SndFancyZonesSettings(Settings);
|
||||||
|
SndModuleSettings<SndFancyZonesSettings> ipcMessage = new SndModuleSettings<SndFancyZonesSettings>(outsettings);
|
||||||
|
ShellPage.DefaultSndMSGCallback(ipcMessage.ToJsonString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,8 @@ namespace ViewModelTests
|
|||||||
{
|
{
|
||||||
DeleteFolder(ModuleName);
|
DeleteFolder(ModuleName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ShellPage.DefaultSndMSGCallback = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DeleteFolder(string powertoy)
|
public void DeleteFolder(string powertoy)
|
||||||
|
Loading…
Reference in New Issue
Block a user