Fixing settings issue to make sure configuration can propagate.

This commit is contained in:
Den Delimarsky 2021-05-02 09:30:26 -07:00
parent 9a009d63eb
commit 485c15e981
No known key found for this signature in database
GPG key ID: E1BE1355085F0BCF
2 changed files with 5 additions and 1 deletions

View file

@ -6,11 +6,13 @@ using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Microsoft.PowerToys.Settings.UI.Library
{
public class SndEspressoSettings
{
[JsonPropertyName("Espresso")]
public EspressoSettings Settings { get; set; }
public SndEspressoSettings()

View file

@ -118,7 +118,9 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
{
SndEspressoSettings outsettings = new SndEspressoSettings(Settings);
SndModuleSettings<SndEspressoSettings> ipcMessage = new SndModuleSettings<SndEspressoSettings>(outsettings);
SendConfigMSG(ipcMessage.ToJsonString());
var targetMessage = ipcMessage.ToJsonString();
SendConfigMSG(targetMessage);
}
}