mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add backwards compatibility with old list
This commit is contained in:
parent
82d91840c1
commit
dd57bfc6f8
2 changed files with 9 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ using Flow.Launcher.Plugin.Explorer.Search;
|
||||||
using Flow.Launcher.Plugin.Explorer.ViewModels;
|
using Flow.Launcher.Plugin.Explorer.ViewModels;
|
||||||
using Flow.Launcher.Plugin.Explorer.Views;
|
using Flow.Launcher.Plugin.Explorer.Views;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
|
|
@ -32,6 +33,11 @@ namespace Flow.Launcher.Plugin.Explorer
|
||||||
viewModel = new SettingsViewModel(context);
|
viewModel = new SettingsViewModel(context);
|
||||||
await viewModel.LoadStorage();
|
await viewModel.LoadStorage();
|
||||||
Settings = viewModel.Settings;
|
Settings = viewModel.Settings;
|
||||||
|
|
||||||
|
// as at v1.7.0 this is to maintain backwards compatibility, need to be removed afterwards.
|
||||||
|
if (Settings.QuickFolderAccessLinks.Any())
|
||||||
|
Settings.QuickAccessLinks = Settings.QuickFolderAccessLinks;
|
||||||
|
|
||||||
contextMenu = new ContextMenu(Context, Settings);
|
contextMenu = new ContextMenu(Context, Settings);
|
||||||
searchManager = new SearchManager(Settings, Context);
|
searchManager = new SearchManager(Settings, Context);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,9 @@ namespace Flow.Launcher.Plugin.Explorer
|
||||||
|
|
||||||
public List<AccessLink> QuickAccessLinks { get; set; } = new List<AccessLink>();
|
public List<AccessLink> QuickAccessLinks { get; set; } = new List<AccessLink>();
|
||||||
|
|
||||||
|
// as at v1.7.0 this is to maintain backwards compatibility, need to be removed afterwards.
|
||||||
|
public List<AccessLink> QuickFolderAccessLinks { get; set; } = new List<AccessLink>();
|
||||||
|
|
||||||
public bool UseWindowsIndexForDirectorySearch { get; set; } = true;
|
public bool UseWindowsIndexForDirectorySearch { get; set; } = true;
|
||||||
|
|
||||||
public List<AccessLink> IndexSearchExcludedSubdirectoryPaths { get; set; } = new List<AccessLink>();
|
public List<AccessLink> IndexSearchExcludedSubdirectoryPaths { get; set; } = new List<AccessLink>();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue