Move transient icon directory to %appdata%

pull/98/head
Brian Lima 2 years ago
parent c6bb692c07
commit 3a6f8afa0b

@ -393,7 +393,7 @@ namespace UWPHook
{ {
foreach (var app in selected_apps) foreach (var app in selected_apps)
{ {
string icon = PersistAppIcon(app, exeDir); string icon = PersistAppIcon(app);
VDFEntry newApp = new VDFEntry() VDFEntry newApp = new VDFEntry()
{ {
@ -480,11 +480,11 @@ namespace UWPHook
/// Due to some apps changing the icon location when they update, which causes icons to be "lost" /// Due to some apps changing the icon location when they update, which causes icons to be "lost"
/// </summary> /// </summary>
/// <param name="app">App to copy the icon from</param> /// <param name="app">App to copy the icon from</param>
/// <param name="path">Base path to copy the app to</param>
/// <returns></returns> /// <returns></returns>
private string PersistAppIcon(AppEntry app, string path) private string PersistAppIcon(AppEntry app)
{ {
string icons_path = path + @"\\icons\\"; string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
string icons_path = path + @"\\Briano\\UWPHook\\icons\\";
if (!Directory.Exists(icons_path)) if (!Directory.Exists(icons_path))
{ {

Loading…
Cancel
Save