Skip to content

Commit

Permalink
Updated CurrentApp constructor to use the PortableLocalDir resource s…
Browse files Browse the repository at this point in the history
…tring.
  • Loading branch information
xvitaly committed May 18, 2024
1 parent 251ca6d commit 3fd1a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mhlib/CurrentApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public CurrentApp(bool IsPortable, string AppName)
FullAppPath = Path.GetDirectoryName(Assembly.GetCallingAssembly().Location);

// Getting full to application user directory...
AppUserDir = IsPortable ? Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), "portable") : Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), AppName);
AppUserDir = IsPortable ? Path.Combine(Path.GetDirectoryName(Assembly.GetCallingAssembly().Location), Properties.Resources.PortableLocalDir) : Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), AppName);

// Checking admininstrator rights...
IsAdmin = ProcessManager.IsCurrentUserAdmin();
Expand Down

0 comments on commit 3fd1a9e

Please sign in to comment.