mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
rename plugin main file, part 2
This commit is contained in:
@@ -11,7 +11,7 @@ using Wox.Plugin.WebSearch.SuggestionSources;
|
||||
|
||||
namespace Wox.Plugin.WebSearch
|
||||
{
|
||||
public class WebSearchPlugin : IPlugin, ISettingProvider, IPluginI18n, IMultipleActionKeywords, ISavable, IResultUpdated
|
||||
public class Main : IPlugin, ISettingProvider, IPluginI18n, IMultipleActionKeywords, ISavable, IResultUpdated
|
||||
{
|
||||
public PluginInitContext Context { get; private set; }
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Wox.Plugin.WebSearch
|
||||
set
|
||||
{
|
||||
_icon = value;
|
||||
IconPath = Path.Combine(WebSearchPlugin.PluginDirectory, WebSearchPlugin.ImageDirectory, value);
|
||||
IconPath = Path.Combine(Main.PluginDirectory, Main.ImageDirectory, value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace Wox.Plugin.WebSearch
|
||||
[JsonIgnore]
|
||||
internal string IconPath { get; private set; } = Path.Combine
|
||||
(
|
||||
WebSearchPlugin.PluginDirectory, WebSearchPlugin.ImageDirectory, DefaultIcon
|
||||
Main.PluginDirectory, Main.ImageDirectory, DefaultIcon
|
||||
);
|
||||
|
||||
public string Url { get; set; }
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Wox.Plugin.WebSearch
|
||||
private bool _isUpdate;
|
||||
private WebSearch _webSearch;
|
||||
private readonly PluginInitContext _context;
|
||||
private readonly WebSearchPlugin _plugin;
|
||||
private readonly Main _plugin;
|
||||
private readonly Settings _settings;
|
||||
|
||||
public WebSearchSetting(WebSearchesSetting settingWidow, Settings settings)
|
||||
@@ -120,7 +120,7 @@ namespace Wox.Plugin.WebSearch
|
||||
|
||||
private void SelectIconButtonOnClick(object sender, RoutedEventArgs e)
|
||||
{
|
||||
var directory = Path.Combine(WebSearchPlugin.PluginDirectory, WebSearchPlugin.ImageDirectory);
|
||||
var directory = Path.Combine(Main.PluginDirectory, Main.ImageDirectory);
|
||||
var dlg = new OpenFileDialog
|
||||
{
|
||||
InitialDirectory = directory,
|
||||
|
||||
@@ -12,9 +12,9 @@ namespace Wox.Plugin.WebSearch
|
||||
{
|
||||
private Settings _settings;
|
||||
public PluginInitContext Context { get; }
|
||||
public WebSearchPlugin Plugin { get; }
|
||||
public Main Plugin { get; }
|
||||
|
||||
public WebSearchesSetting(WebSearchPlugin plugin, Settings settings)
|
||||
public WebSearchesSetting(Main plugin, Settings settings)
|
||||
{
|
||||
Context = plugin.Context;
|
||||
Plugin = plugin;
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
<Compile Include="WebSearchesSetting.xaml.cs">
|
||||
<DependentUpon>WebSearchesSetting.xaml</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="WebSearchPlugin.cs" />
|
||||
<Compile Include="Main.cs" />
|
||||
<Compile Include="WebSearchSetting.xaml.cs">
|
||||
<DependentUpon>WebSearchSetting.xaml</DependentUpon>
|
||||
</Compile>
|
||||
|
||||
Reference in New Issue
Block a user