mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Update method name to describe purpose
This commit is contained in:
parent
46ed642298
commit
df1af8f45a
4 changed files with 8 additions and 8 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue