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

View File

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