mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
Rename
This commit is contained in:
@@ -34,7 +34,7 @@ namespace Wox.Core.Plugin
|
||||
return;
|
||||
}
|
||||
|
||||
string pluginFolerPath = Infrastructure.Wox.UserDirectory;
|
||||
string pluginFolerPath = Infrastructure.Constant.UserDirectory;
|
||||
|
||||
string newPluginName = plugin.Name
|
||||
.Replace("/", "_")
|
||||
|
||||
@@ -33,13 +33,13 @@ namespace Wox.Core.Plugin
|
||||
// todo happlebao, this should not be public, the indicator function should be embeded
|
||||
public static PluginsSettings Settings;
|
||||
private static List<PluginMetadata> _metadatas;
|
||||
private static readonly string[] Directories = { Infrastructure.Wox.PreinstalledDirectory, Infrastructure.Wox.UserDirectory };
|
||||
private static readonly string[] Directories = { Infrastructure.Constant.PreinstalledDirectory, Infrastructure.Constant.UserDirectory };
|
||||
|
||||
private static void ValidateUserDirectory()
|
||||
{
|
||||
if (!Directory.Exists(Infrastructure.Wox.UserDirectory))
|
||||
if (!Directory.Exists(Infrastructure.Constant.UserDirectory))
|
||||
{
|
||||
Directory.CreateDirectory(Infrastructure.Wox.UserDirectory);
|
||||
Directory.CreateDirectory(Infrastructure.Constant.UserDirectory);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Wox.Core.Resource
|
||||
{
|
||||
public string DirectoryName { get; protected set; }
|
||||
|
||||
protected string DirectoryPath => Path.Combine(Infrastructure.Wox.ProgramPath, DirectoryName);
|
||||
protected string DirectoryPath => Path.Combine(Infrastructure.Constant.ProgramDirectory, DirectoryName);
|
||||
|
||||
public abstract ResourceDictionary GetResourceDictionary();
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace Wox.Core.Resource
|
||||
|
||||
internal static void UpdatePluginLanguages()
|
||||
{
|
||||
RemoveResource(Infrastructure.Wox.Plugins);
|
||||
RemoveResource(Infrastructure.Constant.Plugins);
|
||||
foreach (var plugin in PluginManager.GetPluginsForInterface<IPluginI18n>())
|
||||
{
|
||||
var location = Assembly.GetAssembly(plugin.Plugin.GetType()).Location;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace Wox.Core
|
||||
// todo 5/9 the return value of UpdateApp() is NULL, fucking useless!
|
||||
using (
|
||||
var updater =
|
||||
await UpdateManager.GitHubUpdateManager(Infrastructure.Wox.Github, urlDownloader: downloader))
|
||||
await UpdateManager.GitHubUpdateManager(Infrastructure.Constant.Github, urlDownloader: downloader))
|
||||
{
|
||||
await updater.UpdateApp();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user