[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) private static string GetIcon(PluginMetadata metadata, string iconPath)
{ {
var pluginDirectory = Path.GetFileName(metadata.PluginDirectory); return Path.Combine(metadata.PluginDirectory, iconPath);
return Path.Combine(pluginDirectory, iconPath);
} }
private static IEnumerable<PowerLauncherPluginSettings> GetDefaultPluginsSettings() private static IEnumerable<PowerLauncherPluginSettings> GetDefaultPluginsSettings()

View File

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