mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Change to get application folder name dynamically
so this is that the portable version can have the folder name changed to anything else and will still work
This commit is contained in:
parent
b786b1cadb
commit
ee5345a346
1 changed files with 6 additions and 1 deletions
|
|
@ -8,6 +8,7 @@ using Flow.Launcher.Infrastructure;
|
|||
using Flow.Launcher.Infrastructure.Logger;
|
||||
using Flow.Launcher.Infrastructure.UserSettings;
|
||||
using Flow.Launcher.Plugin.SharedCommands;
|
||||
using System.Linq;
|
||||
|
||||
namespace Flow.Launcher.Core.Configuration
|
||||
{
|
||||
|
|
@ -19,7 +20,11 @@ namespace Flow.Launcher.Core.Configuration
|
|||
/// <returns></returns>
|
||||
private UpdateManager NewUpdateManager()
|
||||
{
|
||||
return new UpdateManager(string.Empty, Constant.FlowLauncher, Constant.RootDirectory);
|
||||
var applicationFolderName = Constant.ApplicationDirectory
|
||||
.Split(new[] { Path.DirectorySeparatorChar }, StringSplitOptions.None)
|
||||
.Last();
|
||||
|
||||
return new UpdateManager(string.Empty, applicationFolderName, Constant.RootDirectory);
|
||||
}
|
||||
|
||||
public void DisablePortableMode()
|
||||
|
|
|
|||
Loading…
Reference in a new issue