Skip to content

Commit dd57bfc

Browse files
committed
add backwards compatibility with old list
1 parent 82d9184 commit dd57bfc

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using Flow.Launcher.Plugin.Explorer.ViewModels;
44
using Flow.Launcher.Plugin.Explorer.Views;
55
using System.Collections.Generic;
6+
using System.Linq;
67
using System.Threading;
78
using System.Threading.Tasks;
89
using System.Windows.Controls;
@@ -32,6 +33,11 @@ public async Task InitAsync(PluginInitContext context)
3233
viewModel = new SettingsViewModel(context);
3334
await viewModel.LoadStorage();
3435
Settings = viewModel.Settings;
36+
37+
// as at v1.7.0 this is to maintain backwards compatibility, need to be removed afterwards.
38+
if (Settings.QuickFolderAccessLinks.Any())
39+
Settings.QuickAccessLinks = Settings.QuickFolderAccessLinks;
40+
3541
contextMenu = new ContextMenu(Context, Settings);
3642
searchManager = new SearchManager(Settings, Context);
3743
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ public class Settings
1010

1111
public List<AccessLink> QuickAccessLinks { get; set; } = new List<AccessLink>();
1212

13+
// as at v1.7.0 this is to maintain backwards compatibility, need to be removed afterwards.
14+
public List<AccessLink> QuickFolderAccessLinks { get; set; } = new List<AccessLink>();
15+
1316
public bool UseWindowsIndexForDirectorySearch { get; set; } = true;
1417

1518
public List<AccessLink> IndexSearchExcludedSubdirectoryPaths { get; set; } = new List<AccessLink>();

0 commit comments

Comments
 (0)