mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Settings
This commit is contained in:
parent
4b15add524
commit
287f3f8a5f
3 changed files with 9 additions and 5 deletions
|
|
@ -15,7 +15,7 @@ namespace Flow.Launcher.Plugin.Explorer
|
||||||
{
|
{
|
||||||
public int MaxResult { get; set; } = 100;
|
public int MaxResult { get; set; } = 100;
|
||||||
|
|
||||||
public static ObservableCollection<AccessLink> QuickAccessLinks { get; set; } = new();
|
public ObservableCollection<AccessLink> QuickAccessLinks { get; set; } = new();
|
||||||
|
|
||||||
public ObservableCollection<AccessLink> IndexSearchExcludedSubdirectoryPaths { get; set; } = new ObservableCollection<AccessLink>();
|
public ObservableCollection<AccessLink> IndexSearchExcludedSubdirectoryPaths { get; set; } = new ObservableCollection<AccessLink>();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -383,14 +383,14 @@ namespace Flow.Launcher.Plugin.Explorer.ViewModels
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var quickAccessLinkSettings = new QuickAccessLinkSettings(SelectedQuickAccessLink);
|
var quickAccessLinkSettings = new QuickAccessLinkSettings(Settings,SelectedQuickAccessLink);
|
||||||
quickAccessLinkSettings.ShowDialog();
|
quickAccessLinkSettings.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
[RelayCommand]
|
[RelayCommand]
|
||||||
private void AddQuickAccessLink(object commandParameter)
|
private void AddQuickAccessLink(object commandParameter)
|
||||||
{
|
{
|
||||||
var quickAccessLinkSettings = new QuickAccessLinkSettings();
|
var quickAccessLinkSettings = new QuickAccessLinkSettings(Settings);
|
||||||
quickAccessLinkSettings.ShowDialog();
|
quickAccessLinkSettings.ShowDialog();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,17 +53,21 @@ public partial class QuickAccessLinkSettings : INotifyPropertyChanged
|
||||||
|
|
||||||
private bool IsEdit { get; set; }
|
private bool IsEdit { get; set; }
|
||||||
[CanBeNull] private AccessLink SelectedAccessLink { get; set; }
|
[CanBeNull] private AccessLink SelectedAccessLink { get; set; }
|
||||||
public QuickAccessLinkSettings()
|
|
||||||
|
private Settings Settings { get; }
|
||||||
|
public QuickAccessLinkSettings(Settings settings)
|
||||||
{
|
{
|
||||||
|
Settings = settings;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
public QuickAccessLinkSettings(AccessLink selectedAccessLink)
|
public QuickAccessLinkSettings(Settings settings,AccessLink selectedAccessLink)
|
||||||
{
|
{
|
||||||
IsEdit = true;
|
IsEdit = true;
|
||||||
_selectedName = selectedAccessLink.Name;
|
_selectedName = selectedAccessLink.Name;
|
||||||
_selectedPath = selectedAccessLink.Path;
|
_selectedPath = selectedAccessLink.Path;
|
||||||
SelectedAccessLink = selectedAccessLink;
|
SelectedAccessLink = selectedAccessLink;
|
||||||
|
Settings = settings;
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue