[Settings][PTRun]Show icons of user-installed plugins (#24194)

This commit is contained in:
Alvin Meng 2023-02-22 17:25:43 -05:00 committed by GitHub
parent 3828ac6ecf
commit 429e19615c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View File

@ -215,8 +215,7 @@ namespace PowerLauncher
private static string GetIcon(PluginMetadata metadata, string iconPath)
{
var pluginDirectory = Path.GetFileName(metadata.PluginDirectory);
return Path.Combine(pluginDirectory, iconPath);
return Path.Combine(metadata.PluginDirectory, iconPath);
}
private static IEnumerable<PowerLauncherPluginSettings> GetDefaultPluginsSettings()

View File

@ -160,12 +160,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
public string IconPath
{
get
{
var path = isDark() ? settings.IconPathDark : settings.IconPathLight;
path = Path.Combine(Directory.GetCurrentDirectory(), @"modules\launcher\Plugins", path);
return path;
}
get => isDark() ? settings.IconPathDark : settings.IconPathLight;
}
public event PropertyChangedEventHandler PropertyChanged;