Save relative path to settings (#11543)

This commit is contained in:
Mykhailo Pylyp
2021-06-01 10:57:53 +03:00
committed by GitHub
parent 3807673574
commit cecf6fb089
3 changed files with 18 additions and 5 deletions

View File

@@ -5,6 +5,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
@@ -128,7 +129,15 @@ namespace Microsoft.PowerToys.Settings.UI.Library.ViewModels
return $"{Name}. {Description}";
}
public string IconPath { get => isDark() ? settings.IconPathDark : settings.IconPathLight; }
public string IconPath
{
get
{
var path = isDark() ? settings.IconPathDark : settings.IconPathLight;
path = Path.Combine(Directory.GetCurrentDirectory(), @"modules\launcher\Plugins", path);
return path;
}
}
private bool _showAdditionalInfoPanel;