Skip to content

Commit

Permalink
[PTRun]update icons and author on startup (#14828)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidegiacometti authored Dec 6, 2021
1 parent d7e3607 commit 3b89e6f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/modules/launcher/PowerLauncher/SettingsReader.cs
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -202,7 +202,7 @@ private static IEnumerable<PowerLauncherPluginSettings> GetDefaultPluginsSetting
}

/// <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)
{
Expand All @@ -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;
}
Expand Down

0 comments on commit 3b89e6f

Please sign in to comment.