Skip to content

Commit bc89c65

Browse files
default value
1 parent b825059 commit bc89c65

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Main.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
using System;
66
using System.Collections.Generic;
7-
using System.IO;
87
using System.IO.Abstractions;
98
using System.Linq;
109
using System.Windows.Controls;
@@ -25,7 +24,7 @@ public class Main : IPlugin, IPluginI18n, ISavable, IContextMenu, IDisposable
2524
private static readonly IFileSystem _fileSystem = new FileSystem();
2625
private static readonly PluginJsonStorage<FolderSettings> _storage = new PluginJsonStorage<FolderSettings>();
2726
private static readonly FolderSettings _settings = _storage.Load();
28-
private static readonly IQueryInternalDirectory _internalDirectory = new QueryInternalDirectory(_settings, new QueryFileSystemInfo(_fileSystem.DirectoryInfo, MatchType.Win32, FileAttributes.Hidden), _fileSystem.Directory);
27+
private static readonly IQueryInternalDirectory _internalDirectory = new QueryInternalDirectory(_settings, new QueryFileSystemInfo(_fileSystem.DirectoryInfo), _fileSystem.Directory);
2928
private static readonly FolderHelper _folderHelper = new FolderHelper(new DriveInformation(), new FolderLinksSettings(_settings));
3029
private static readonly IEnvironmentHelper _environmentHelper = new EnvironmentHelper();
3130
private static readonly IQueryEnvironmentVariable _queryEnvironmentVariable = new QueryEnvironmentVariable(_fileSystem.Directory, _environmentHelper);

src/modules/launcher/Plugins/Microsoft.Plugin.Folder/Sources/QueryFileSystemInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class QueryFileSystemInfo : IQueryFileSystemInfo
1515
private readonly MatchType _matchType;
1616
private readonly FileAttributes _attributesToSkip;
1717

18-
public QueryFileSystemInfo(IDirectoryInfoFactory directoryInfoFactory, MatchType matchType, FileAttributes attributesToSkip)
18+
public QueryFileSystemInfo(IDirectoryInfoFactory directoryInfoFactory, MatchType matchType = MatchType.Win32, FileAttributes attributesToSkip = FileAttributes.Hidden)
1919
{
2020
_directoryInfoFactory = directoryInfoFactory;
2121
_matchType = matchType;

0 commit comments

Comments
 (0)