Files
quiver-launcher/ViewModels/SettingsViewModel.cs
T
Thomas GeorgiadisandCursor 7b674a9d08 Rebrand to Quiver 2.0.0 with in-repo Core and expanded catalog features.
Rename GithubLauncher to Quiver, vendor Quiver.Core into the main repository, add community catalog support, tests, and updated branding assets for the 2.0 release.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-20 17:38:48 +10:00

24 lines
626 B
C#

using System.Collections.ObjectModel;
using Quiver.Models;
using Quiver.Services;
namespace Quiver.ViewModels;
public class SettingsViewModel
{
private readonly ISettingsStore _settingsStore;
public SettingsViewModel(ISettingsStore? settingsStore = null)
{
_settingsStore = settingsStore ?? SettingsStoreProvider.Default;
}
public AppSettings Current => _settingsStore.Current;
public AppSettings Load() => _settingsStore.Load();
public void Save(AppSettings settings) => _settingsStore.Save(settings);
public void SaveCurrent() => _settingsStore.Save(_settingsStore.Current);
}