Skip to content

Commit e6d5d7c

Browse files
committed
Fix PR Comments
1 parent d2faf6b commit e6d5d7c

File tree

20 files changed

+31
-232
lines changed

20 files changed

+31
-232
lines changed

Plugins/HelloWorldCSharp/App.config

Lines changed: 0 additions & 6 deletions
This file was deleted.

Plugins/HelloWorldCSharp/HelloWorldCSharp.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
</PropertyGroup>
3838

3939
<ItemGroup>
40-
<None Include="App.config" />
4140
<None Include="plugin.json">
4241
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
4342
</None>

Plugins/Wox.Plugin.BrowserBookmark/Wox.Plugin.BrowserBookmark.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
</PropertyGroup>
3333

3434
<ItemGroup>
35-
<None Include="app.config" />
3635
<None Include="plugin.json">
3736
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
3837
</None>

Plugins/Wox.Plugin.BrowserBookmark/app.config

Lines changed: 0 additions & 22 deletions
This file was deleted.

Plugins/Wox.Plugin.Folder/Main.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class Main : IPlugin, ISettingProvider, IPluginI18n, ISavable, IContextMe
1919

2020
private string DefaultFolderSubtitleString = "Ctrl + Enter to open the directory";
2121

22+
private static string _fileExplorerProgramName = "explorer";
2223
private static List<string> _driverNames;
2324
private PluginInitContext _context;
2425

@@ -102,7 +103,7 @@ private Result CreateFolderResult(string title, string subtitle, string path, Qu
102103
{
103104
try
104105
{
105-
Process.Start("explorer", path);
106+
Process.Start(_fileExplorerProgramName, path);
106107
return true;
107108
}
108109
catch (Exception ex)
@@ -254,7 +255,7 @@ private static Result CreateFileResult(string filePath, Query query)
254255
{
255256
try
256257
{
257-
Process.Start("explorer", filePath);
258+
Process.Start(_fileExplorerProgramName, filePath);
258259
}
259260
catch (Exception ex)
260261
{
@@ -285,7 +286,7 @@ private static Result CreateOpenCurrentFolderResult(string incompleteName, strin
285286
Score = 500,
286287
Action = c =>
287288
{
288-
Process.Start("explorer", search);
289+
Process.Start(_fileExplorerProgramName, search);
289290
return true;
290291
}
291292
};

Plugins/Wox.Plugin.Program/Programs/FileSystemFolderSourceShallow.cs

Lines changed: 0 additions & 152 deletions
This file was deleted.

Plugins/Wox.Plugin.Program/Wox.Plugin.Program.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@
3939
</None>
4040
</ItemGroup>
4141

42-
<ItemGroup>
43-
<Compile Remove="Programs\FileSystemFolderSourceShallow.cs" />
44-
</ItemGroup>
45-
4642
<ItemGroup>
4743
<Reference Include="AppxPackagingTlb">
4844
<HintPath>.\AppxPackagingTlb.dll</HintPath>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
using System.Runtime.CompilerServices;
2+
3+
[assembly: InternalsVisibleTo("Wox")]
4+
[assembly: InternalsVisibleTo("Wox.Core")]
5+
[assembly: InternalsVisibleTo("Wox.Test")]

Wox.Infrastructure/StringMatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public StringMatcher(IAlphabet alphabet = null)
1919
_alphabet = alphabet;
2020
}
2121

22-
public static StringMatcher Instance { get; set; }
22+
public static StringMatcher Instance { get; internal set; }
2323

2424
[Obsolete("This method is obsolete and should not be used. Please use the static function StringMatcher.FuzzySearch")]
2525
public static int Score(string source, string target)

Wox.Infrastructure/UserSettings/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class Settings : BaseModel
2828
public bool ShouldUsePinyin { get; set; } = true;
2929

3030

31-
public StringMatcher.SearchPrecisionScore QuerySearchPrecision { get; private set; } = StringMatcher.SearchPrecisionScore.Regular;
31+
internal StringMatcher.SearchPrecisionScore QuerySearchPrecision { get; private set; } = StringMatcher.SearchPrecisionScore.Regular;
3232

3333
[JsonIgnore]
3434
public string QuerySearchPrecisionString

0 commit comments

Comments
 (0)