Skip to content

Commit d429304

Browse files
committed
Improve code quality
1 parent fd2952b commit d429304

File tree

1 file changed

+4
-4
lines changed
  • Plugins/Flow.Launcher.Plugin.Explorer

1 file changed

+4
-4
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Main.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using System;
77
using System.Collections.Generic;
88
using System.IO;
9-
using System.Linq;
109
using System.Threading;
1110
using System.Threading.Tasks;
1211
using System.Windows.Controls;
@@ -36,8 +35,8 @@ public Task InitAsync(PluginInitContext context)
3635
Context = context;
3736

3837
Settings = context.API.LoadSettingJsonStorage<Settings>();
39-
FixLegacyQuickAccessLinkNames();
40-
38+
FillQuickAccessLinkNames();
39+
4140
viewModel = new SettingsViewModel(context, Settings);
4241

4342
contextMenu = new ContextMenu(Context, Settings, viewModel);
@@ -98,8 +97,9 @@ public string GetTranslatedPluginDescription()
9897
return Context.API.GetTranslation("plugin_explorer_plugin_description");
9998
}
10099

101-
private void FixLegacyQuickAccessLinkNames()
100+
private void FillQuickAccessLinkNames()
102101
{
102+
// Legacy version does not have names for quick access links, so we fill them with the path name.
103103
foreach (var link in Settings.QuickAccessLinks)
104104
{
105105
if (string.IsNullOrWhiteSpace(link.Name))

0 commit comments

Comments
 (0)