From 3b89e6f5a46a882d52348c35cb53b28cb32984a3 Mon Sep 17 00:00:00 2001 From: Davide Giacometti Date: Mon, 6 Dec 2021 20:28:04 +0100 Subject: [PATCH] [PTRun]update icons and author on startup (#14828) --- src/modules/launcher/PowerLauncher/SettingsReader.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/modules/launcher/PowerLauncher/SettingsReader.cs b/src/modules/launcher/PowerLauncher/SettingsReader.cs index 33f92754a531..fb428ca23988 100644 --- a/src/modules/launcher/PowerLauncher/SettingsReader.cs +++ b/src/modules/launcher/PowerLauncher/SettingsReader.cs @@ -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 @@ private static IEnumerable GetDefaultPluginsSetting } /// - /// Add new plugins and updates additional options for existing ones + /// Add new plugins and updates properties and additional options for existing ones /// private static void UpdateSettings(PowerLauncherSettings settings) { @@ -214,6 +214,9 @@ private static void UpdateSettings(PowerLauncherSettings settings) 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; }