Skip to content

Commit df1af8f

Browse files
committed
Update method name to describe purpose
1 parent 46ed642 commit df1af8f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

Flow.Launcher.Core/Configuration/Portable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public void PreStartCleanUpAfterPortabilityUpdate()
172172
"would you like to move it to a different location?", string.Empty,
173173
MessageBoxButton.YesNo) == MessageBoxResult.Yes)
174174
{
175-
FilesFolders.OpenLocationInExporer(Constant.RootDirectory);
175+
FilesFolders.OpenPath(Constant.RootDirectory);
176176

177177
Environment.Exit(0);
178178
}

Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Diagnostics;
33
using System.IO;
44
using System.Windows;
@@ -110,9 +110,9 @@ public static bool FileExits(this string filePath)
110110
return File.Exists(filePath);
111111
}
112112

113-
public static void OpenLocationInExporer(string location)
113+
public static void OpenPath(string fileOrFolderPath)
114114
{
115-
var psi = new ProcessStartInfo { FileName = FileExplorerProgramName, UseShellExecute = true, Arguments = location };
115+
var psi = new ProcessStartInfo { FileName = FileExplorerProgramName, UseShellExecute = true, Arguments = fileOrFolderPath };
116116
try
117117
{
118118
if (LocationExists(fileOrFolderPath) || FileExits(fileOrFolderPath))

Flow.Launcher/SettingWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ private void OnPluginDirecotyClick(object sender, MouseButtonEventArgs e)
241241
{
242242
var directory = _viewModel.SelectedPlugin.PluginPair.Metadata.PluginDirectory;
243243
if (!string.IsNullOrEmpty(directory))
244-
FilesFolders.OpenLocationInExporer(directory);
244+
FilesFolders.OpenPath(directory);
245245
}
246246
}
247247
#endregion

Plugins/Flow.Launcher.Plugin.Folder/Main.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private Result CreateFolderResult(string title, string subtitle, string path, Qu
103103
{
104104
try
105105
{
106-
FilesFolders.OpenLocationInExporer(path);
106+
FilesFolders.OpenPath(path);
107107
return true;
108108
}
109109
catch (Exception ex)
@@ -255,7 +255,7 @@ private static Result CreateFileResult(string filePath, Query query)
255255
{
256256
try
257257
{
258-
FilesFolders.OpenLocationInExporer(filePath);
258+
FilesFolders.OpenPath(filePath);
259259
}
260260
catch (Exception ex)
261261
{
@@ -286,7 +286,7 @@ private static Result CreateOpenCurrentFolderResult(string incompleteName, strin
286286
Score = 500,
287287
Action = c =>
288288
{
289-
FilesFolders.OpenLocationInExporer(search);
289+
FilesFolders.OpenPath(search);
290290
return true;
291291
}
292292
};

0 commit comments

Comments
 (0)