You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Nickvision.Desktop/Filesystem/JsonFileService.cs
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -43,13 +43,19 @@ public JsonFileService(string directory)
43
43
/// Constructs a JsonFileService.
44
44
/// </summary>
45
45
/// <param name="appInfo">The AppInfo object for the app</param>
46
-
/// <remarks>If the environment variable "{AppInfo.Id}.portable" is set, the current working directory will be used. Else, a {AppInfo.Name} folder will be created and used inside the user's configuration directory.</remarks>
47
-
publicJsonFileService(AppInfoappInfo)
48
-
:this(Environment.GetEnvironmentVariable($"{appInfo.Id}.portable")is not null?Directory.GetCurrentDirectory():Path.Combine(UserDirectories.Config,appInfo.Name))
46
+
/// <remarks>
47
+
/// If the environment variable "{AppInfo.Id}.portable" is set, the current working directory will be used. Else,
48
+
/// a {AppInfo.Name} folder will be created and used inside the user's configuration directory.
49
+
/// </remarks>
50
+
publicJsonFileService(AppInfoappInfo):this(Environment.GetEnvironmentVariable($"{appInfo.Id}.portable")is not null?Directory.GetCurrentDirectory():Path.Combine(UserDirectories.Config,appInfo.Name))
0 commit comments