Skip to content

Commit

Permalink
fixed unit tests (#4865)
Browse files Browse the repository at this point in the history
  • Loading branch information
yevhenii44-zz committed Jul 8, 2020
1 parent ac5a3e7 commit e3e6b23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,12 @@ private String ToRGBHex(Color color)
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());
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ public void CleanUp()
{
DeleteFolder(ModuleName);
}

ShellPage.DefaultSndMSGCallback = null;
}

public void DeleteFolder(string powertoy)
Expand Down

0 comments on commit e3e6b23

Please sign in to comment.