mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 12:18:50 +02:00
[Settings][PTRun]Show icons of user-installed plugins (#24194)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user