Update method name to describe purpose

This commit is contained in:
Jeremy Wu 2020-04-29 18:58:52 +10:00
parent 46ed642298
commit df1af8f45a
4 changed files with 8 additions and 8 deletions

View file

@ -172,7 +172,7 @@ namespace Flow.Launcher.Core.Configuration
"would you like to move it to a different location?", string.Empty,
MessageBoxButton.YesNo) == MessageBoxResult.Yes)
{
FilesFolders.OpenLocationInExporer(Constant.RootDirectory);
FilesFolders.OpenPath(Constant.RootDirectory);
Environment.Exit(0);
}

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Diagnostics;
using System.IO;
using System.Windows;
@ -110,9 +110,9 @@ namespace Flow.Launcher.Plugin.SharedCommands
return File.Exists(filePath);
}
public static void OpenLocationInExporer(string location)
public static void OpenPath(string fileOrFolderPath)
{
var psi = new ProcessStartInfo { FileName = FileExplorerProgramName, UseShellExecute = true, Arguments = location };
var psi = new ProcessStartInfo { FileName = FileExplorerProgramName, UseShellExecute = true, Arguments = fileOrFolderPath };
try
{
if (LocationExists(fileOrFolderPath) || FileExits(fileOrFolderPath))

View file

@ -241,7 +241,7 @@ namespace Flow.Launcher
{
var directory = _viewModel.SelectedPlugin.PluginPair.Metadata.PluginDirectory;
if (!string.IsNullOrEmpty(directory))
FilesFolders.OpenLocationInExporer(directory);
FilesFolders.OpenPath(directory);
}
}
#endregion

View file

@ -103,7 +103,7 @@ namespace Flow.Launcher.Plugin.Folder
{
try
{
FilesFolders.OpenLocationInExporer(path);
FilesFolders.OpenPath(path);
return true;
}
catch (Exception ex)
@ -255,7 +255,7 @@ namespace Flow.Launcher.Plugin.Folder
{
try
{
FilesFolders.OpenLocationInExporer(filePath);
FilesFolders.OpenPath(filePath);
}
catch (Exception ex)
{
@ -286,7 +286,7 @@ namespace Flow.Launcher.Plugin.Folder
Score = 500,
Action = c =>
{
FilesFolders.OpenLocationInExporer(search);
FilesFolders.OpenPath(search);
return true;
}
};