mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
don't check whether the location exists and use the productversion since that's inherited from assembly version
This commit is contained in:
parent
1ca7ff0c11
commit
92839b004e
2 changed files with 1 additions and 4 deletions
|
|
@ -80,15 +80,12 @@ namespace Flow.Launcher.Core.Configuration
|
||||||
///</summary>
|
///</summary>
|
||||||
public void PreStartCleanUpAfterPortabilityUpdate()
|
public void PreStartCleanUpAfterPortabilityUpdate()
|
||||||
{
|
{
|
||||||
var locator = VelopackLocator.GetDefault(null);
|
|
||||||
|
|
||||||
// check whether the package locate in %localappdata%
|
// check whether the package locate in %localappdata%
|
||||||
// if not create the portable data folder
|
// if not create the portable data folder
|
||||||
// Don't create the folder if the version is 1.0.0 (Dev) to allow potential debugging with data in the project folder
|
// Don't create the folder if the version is 1.0.0 (Dev) to allow potential debugging with data in the project folder
|
||||||
// It is still possible to create the UserData folder for dev version manually but we want to keep the current behavior
|
// It is still possible to create the UserData folder for dev version manually but we want to keep the current behavior
|
||||||
if (!Constant.ProgramDirectory.IsSubPathOf(
|
if (!Constant.ProgramDirectory.IsSubPathOf(
|
||||||
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData))
|
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData))
|
||||||
&& !DataLocation.PortableDataPath.LocationExists()
|
|
||||||
&& Constant.Version != "1.0.0")
|
&& Constant.Version != "1.0.0")
|
||||||
{
|
{
|
||||||
Directory.CreateDirectory(DataLocation.PortableDataPath);
|
Directory.CreateDirectory(DataLocation.PortableDataPath);
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ namespace Flow.Launcher.Infrastructure
|
||||||
|
|
||||||
public static readonly string PreinstalledDirectory = Path.Combine(ProgramDirectory, Plugins);
|
public static readonly string PreinstalledDirectory = Path.Combine(ProgramDirectory, Plugins);
|
||||||
public const string IssuesUrl = "https://github.com/Flow-Launcher/Flow.Launcher/issues";
|
public const string IssuesUrl = "https://github.com/Flow-Launcher/Flow.Launcher/issues";
|
||||||
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location.NonNull()).FileVersion;
|
public static readonly string Version = FileVersionInfo.GetVersionInfo(Assembly.Location.NonNull()).ProductVersion;
|
||||||
public static readonly string Dev = "Dev";
|
public static readonly string Dev = "Dev";
|
||||||
public const string Documentation = "https://flowlauncher.com/docs/#/usage-tips";
|
public const string Documentation = "https://flowlauncher.com/docs/#/usage-tips";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue