mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
misc
This commit is contained in:
@@ -21,12 +21,11 @@ namespace Wox.ViewModel
|
||||
private readonly JsonStrorage<Settings> _storage;
|
||||
private readonly Dictionary<ISettingProvider, Control> _featureControls = new Dictionary<ISettingProvider, Control>();
|
||||
|
||||
public Tab SelectedTab { get; set; } = Tab.General;
|
||||
public List<Language> Languages => InternationalizationManager.Instance.LoadAvailableLanguages();
|
||||
public IEnumerable<int> MaxResultsRange => Enumerable.Range(2, 16);
|
||||
public Tab SelectedTab { get; set; } = Tab.General;
|
||||
public PluginViewModel SelectedPlugin { get; set; }
|
||||
|
||||
public IList<PluginViewModel> MetadataViewModels
|
||||
public IList<PluginViewModel> PluginViewModels
|
||||
{
|
||||
get
|
||||
{
|
||||
@@ -56,12 +55,6 @@ namespace Wox.ViewModel
|
||||
}
|
||||
}
|
||||
|
||||
public SettingWindowViewModel()
|
||||
{
|
||||
_storage = new JsonStrorage<Settings>();
|
||||
Settings = _storage.Load();
|
||||
}
|
||||
|
||||
public Control SettingProvider
|
||||
{
|
||||
get
|
||||
@@ -100,6 +93,14 @@ namespace Wox.ViewModel
|
||||
}
|
||||
}
|
||||
|
||||
public SettingWindowViewModel()
|
||||
{
|
||||
_storage = new JsonStrorage<Settings>();
|
||||
Settings = _storage.Load();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void Save()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user