mirror of
https://github.com/tgeorgiadis/quiver-launcher.git
synced 2026-11-22 21:50:52 -05:00
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>
24 lines
626 B
C#
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);
|
|
}
|