This commit is contained in:
bao-qian
2016-05-22 05:51:00 +01:00
parent 826a69c531
commit 1867e56739
2 changed files with 12 additions and 10 deletions

View File

@@ -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()
{