mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-01-21 00:14:15 +08:00
Merge pull request #24 from jjw24/add_reindix_program_suffix
Add reindex call to Plugin.Program file suffixes update
This commit is contained in:
commit
30fdcf4efb
@ -94,8 +94,11 @@ namespace Wox.Plugin.Program
|
|||||||
|
|
||||||
private void BtnProgramSuffixes_OnClick(object sender, RoutedEventArgs e)
|
private void BtnProgramSuffixes_OnClick(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
ProgramSuffixes p = new ProgramSuffixes(context, _settings);
|
var p = new ProgramSuffixes(context, _settings);
|
||||||
p.ShowDialog();
|
if (p.ShowDialog() ?? false)
|
||||||
|
{
|
||||||
|
ReIndexing();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void programSourceView_DragEnter(object sender, DragEventArgs e)
|
private void programSourceView_DragEnter(object sender, DragEventArgs e)
|
||||||
|
@ -30,6 +30,8 @@ namespace Wox.Plugin.Program
|
|||||||
_settings.ProgramSuffixes = tbSuffixes.Text.Split(Settings.SuffixSeperator);
|
_settings.ProgramSuffixes = tbSuffixes.Text.Split(Settings.SuffixSeperator);
|
||||||
string msg = context.API.GetTranslation("wox_plugin_program_update_file_suffixes");
|
string msg = context.API.GetTranslation("wox_plugin_program_update_file_suffixes");
|
||||||
MessageBox.Show(msg);
|
MessageBox.Show(msg);
|
||||||
|
|
||||||
|
DialogResult = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user