mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +02:00
29 lines
750 B
C#
29 lines
750 B
C#
// Copyright (c) Microsoft Corporation
|
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using Wox.Infrastructure.Storage;
|
|
using Wox.Infrastructure.UserSettings;
|
|
using Wox.Plugin;
|
|
|
|
namespace PowerLauncher.ViewModel
|
|
{
|
|
public class SettingWindowViewModel : BaseModel
|
|
{
|
|
private readonly WoxJsonStorage<PowerToysRunSettings> _storage;
|
|
|
|
public SettingWindowViewModel()
|
|
{
|
|
_storage = new WoxJsonStorage<PowerToysRunSettings>();
|
|
Settings = _storage.Load();
|
|
}
|
|
|
|
public PowerToysRunSettings Settings { get; }
|
|
|
|
public void Save()
|
|
{
|
|
_storage.Save();
|
|
}
|
|
}
|
|
}
|