mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix null check
This commit is contained in:
parent
ab1fe67dd4
commit
fdb0cf508a
1 changed files with 4 additions and 2 deletions
|
|
@ -360,18 +360,20 @@ namespace Flow.Launcher.Plugin.Explorer.ViewModels
|
|||
private void AddIndexSearchExcludePaths()
|
||||
{
|
||||
var container = Settings.IndexSearchExcludedSubdirectoryPaths;
|
||||
|
||||
if (container is null) return;
|
||||
|
||||
var folderBrowserDialog = new FolderBrowserDialog();
|
||||
|
||||
if (folderBrowserDialog.ShowDialog() != DialogResult.OK)
|
||||
return;
|
||||
|
||||
|
||||
var newAccessLink = new AccessLink
|
||||
{
|
||||
Name = folderBrowserDialog.SelectedPath.GetPathName(),
|
||||
Path = folderBrowserDialog.SelectedPath
|
||||
};
|
||||
|
||||
|
||||
container.Add(newAccessLink);
|
||||
Save();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue