Merge pull request #24 from jjw24/add_reindix_program_suffix

Add reindex call to Plugin.Program file suffixes update
This commit is contained in:
Jeremy Wu 2019-10-27 20:41:43 +11:00 committed by GitHub
commit 30fdcf4efb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -94,8 +94,11 @@ namespace Wox.Plugin.Program
private void BtnProgramSuffixes_OnClick(object sender, RoutedEventArgs e)
{
ProgramSuffixes p = new ProgramSuffixes(context, _settings);
p.ShowDialog();
var p = new ProgramSuffixes(context, _settings);
if (p.ShowDialog() ?? false)
{
ReIndexing();
}
}
private void programSourceView_DragEnter(object sender, DragEventArgs e)

View File

@ -30,6 +30,8 @@ namespace Wox.Plugin.Program
_settings.ProgramSuffixes = tbSuffixes.Text.Split(Settings.SuffixSeperator);
string msg = context.API.GetTranslation("wox_plugin_program_update_file_suffixes");
MessageBox.Show(msg);
DialogResult = true;
}
}
}