[PTRun]update icons and author on startup (#14828)

This commit is contained in:
Davide Giacometti 2021-12-06 20:28:04 +01:00 committed by GitHub
parent d7e36079fc
commit 3b89e6f5a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation
// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
@ -202,7 +202,7 @@ namespace PowerLauncher
}
/// <summary>
/// Add new plugins and updates additional options for existing ones
/// Add new plugins and updates properties and additional options for existing ones
/// </summary>
private static void UpdateSettings(PowerLauncherSettings settings)
{
@ -214,6 +214,9 @@ namespace PowerLauncher
var additionalOptions = CombineAdditionalOptions(defaultPlugins[plugin.Id].AdditionalOptions, plugin.AdditionalOptions);
plugin.Name = defaultPlugins[plugin.Id].Name;
plugin.Description = defaultPlugins[plugin.Id].Description;
plugin.Author = defaultPlugins[plugin.Id].Author;
plugin.IconPathDark = defaultPlugins[plugin.Id].IconPathDark;
plugin.IconPathLight = defaultPlugins[plugin.Id].IconPathLight;
defaultPlugins[plugin.Id] = plugin;
defaultPlugins[plugin.Id].AdditionalOptions = additionalOptions;
}