Skip to content

Commit ef19bb8

Browse files
authored
Merge pull request #161 from Flow-Launcher/update_method_name_typo
Update Flow.Launcher.Plugin method name typos
2 parents ec5f727 + df168c6 commit ef19bb8

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Flow.Launcher.Core/Configuration/Portable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void RemoveUninstallerEntry()
9595

9696
public void MoveUserDataFolder(string fromLocation, string toLocation)
9797
{
98-
FilesFolders.Copy(fromLocation, toLocation);
98+
FilesFolders.CopyAll(fromLocation, toLocation);
9999
VerifyUserDataAfterMove(fromLocation, toLocation);
100100
}
101101

Flow.Launcher.Core/Updater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public async Task UpdateApp(IPublicAPI api , bool silentUpdate = true)
9191
if (DataLocation.PortableDataLocationInUse())
9292
{
9393
var targetDestination = updateManager.RootAppDirectory + $"\\app-{newReleaseVersion.ToString()}\\{DataLocation.PortableFolderName}";
94-
FilesFolders.Copy(DataLocation.PortableDataPath, targetDestination);
94+
FilesFolders.CopyAll(DataLocation.PortableDataPath, targetDestination);
9595
if (!FilesFolders.VerifyBothFolderFilesEqual(DataLocation.PortableDataPath, targetDestination))
9696
MessageBox.Show("Flow Launcher was not able to move your user profile data to the new update version. Please manually " +
9797
$"move your profile data folder from {DataLocation.PortableDataPath} to {targetDestination}");

Flow.Launcher.Plugin/Flow.Launcher.Plugin.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414
</PropertyGroup>
1515

1616
<PropertyGroup>
17-
<Version>1.2.0</Version>
18-
<PackageVersion>1.2.0</PackageVersion>
19-
<AssemblyVersion>1.2.0</AssemblyVersion>
20-
<FileVersion>1.2.0</FileVersion>
17+
<Version>1.2.1</Version>
18+
<PackageVersion>1.2.1</PackageVersion>
19+
<AssemblyVersion>1.2.1</AssemblyVersion>
20+
<FileVersion>1.2.1</FileVersion>
2121
<PackageId>Flow.Launcher.Plugin</PackageId>
2222
<Authors>Flow-Launcher</Authors>
2323
<PackageLicenseExpression>MIT</PackageLicenseExpression>

Flow.Launcher.Plugin/SharedCommands/FilesFolders.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static class FilesFolders
1717
/// </summary>
1818
/// <param name="sourcePath"></param>
1919
/// <param name="targetPath"></param>
20-
public static void Copy(this string sourcePath, string targetPath)
20+
public static void CopyAll(this string sourcePath, string targetPath)
2121
{
2222
// Get the subdirectories for the specified directory.
2323
DirectoryInfo dir = new DirectoryInfo(sourcePath);
@@ -50,7 +50,7 @@ public static void Copy(this string sourcePath, string targetPath)
5050
foreach (DirectoryInfo subdir in dirs)
5151
{
5252
string temppath = Path.Combine(targetPath, subdir.Name);
53-
Copy(subdir.FullName, temppath);
53+
CopyAll(subdir.FullName, temppath);
5454
}
5555
}
5656
catch (Exception e)
@@ -114,7 +114,7 @@ public static bool LocationExists(this string path)
114114
return Directory.Exists(path);
115115
}
116116

117-
public static bool FileExits(this string filePath)
117+
public static bool FileExists(this string filePath)
118118
{
119119
return File.Exists(filePath);
120120
}
@@ -124,7 +124,7 @@ public static void OpenPath(string fileOrFolderPath)
124124
var psi = new ProcessStartInfo { FileName = FileExplorerProgramName, UseShellExecute = true, Arguments = fileOrFolderPath };
125125
try
126126
{
127-
if (LocationExists(fileOrFolderPath) || FileExits(fileOrFolderPath))
127+
if (LocationExists(fileOrFolderPath) || FileExists(fileOrFolderPath))
128128
Process.Start(psi);
129129
}
130130
catch (Exception e)

0 commit comments

Comments
 (0)