mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 17:42:45 +08:00
[Settings][PTRun]Show icons of user-installed plugins (#24194)
This commit is contained in:
parent
3828ac6ecf
commit
429e19615c
@ -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()
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user