mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
Fixing settings issue to make sure configuration can propagate.
This commit is contained in:
@@ -6,11 +6,13 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
using System.Text.Json.Serialization;
|
||||||
|
|
||||||
namespace Microsoft.PowerToys.Settings.UI.Library
|
namespace Microsoft.PowerToys.Settings.UI.Library
|
||||||
{
|
{
|
||||||
public class SndEspressoSettings
|
public class SndEspressoSettings
|
||||||
{
|
{
|
||||||
|
[JsonPropertyName("Espresso")]
|
||||||
public EspressoSettings Settings { get; set; }
|
public EspressoSettings Settings { get; set; }
|
||||||
|
|
||||||
public SndEspressoSettings()
|
public SndEspressoSettings()
|
||||||
|
|||||||
@@ -118,7 +118,9 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
|
|||||||
{
|
{
|
||||||
SndEspressoSettings outsettings = new SndEspressoSettings(Settings);
|
SndEspressoSettings outsettings = new SndEspressoSettings(Settings);
|
||||||
SndModuleSettings<SndEspressoSettings> ipcMessage = new SndModuleSettings<SndEspressoSettings>(outsettings);
|
SndModuleSettings<SndEspressoSettings> ipcMessage = new SndModuleSettings<SndEspressoSettings>(outsettings);
|
||||||
SendConfigMSG(ipcMessage.ToJsonString());
|
|
||||||
|
var targetMessage = ipcMessage.ToJsonString();
|
||||||
|
SendConfigMSG(targetMessage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user