mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-08 01:52:52 +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)
|
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()
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user