Databinding for hotkey tab

part of #660
This commit is contained in:
bao-qian
2016-05-22 20:50:06 +01:00
parent 2256183422
commit cb56b98222
7 changed files with 66 additions and 68 deletions

View File

@@ -72,11 +72,11 @@ namespace Wox.ViewModel
{
multipleActionKeywordsProvider.ActionKeywordsChanged += (o, e) =>
{
// update in-memory data
PluginManager.UpdateActionKeywordForPlugin(SelectedPlugin.PluginPair, e.OldActionKeyword,
e.NewActionKeyword);
// update persistant data
Settings.PluginSettings.UpdateActionKeyword(SelectedPlugin.Metadata);
// update in-memory data
PluginManager.UpdateActionKeywordForPlugin(SelectedPlugin.PluginPair, e.OldActionKeyword,
e.NewActionKeyword);
// update persistant data
Settings.PluginSettings.UpdateActionKeyword(SelectedPlugin.Metadata);
MessageBox.Show(InternationalizationManager.Instance.GetTranslation("succeed"));
};
@@ -276,6 +276,10 @@ namespace Wox.ViewModel
}
#endregion
#region hotkey
public CustomPluginHotkey SelectedCustomPluginHotkey {get;set;}
#endregion
public SettingWindowViewModel()
{