fixed unit tests (#4865)

This commit is contained in:
Yevhenii Holovachov 2020-07-08 18:00:44 +03:00 committed by GitHub
parent ac5a3e7a65
commit e3e6b23b7c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 3 deletions

View file

@ -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());
}
}
}
}

View file

@ -43,6 +43,8 @@ namespace ViewModelTests
{
DeleteFolder(ModuleName);
}
ShellPage.DefaultSndMSGCallback = null;
}
public void DeleteFolder(string powertoy)