diff --git a/src/AppsDownloader/Libraries/Settings.cs b/src/AppsDownloader/Libraries/Settings.cs index 6175083..df3e2b3 100644 --- a/src/AppsDownloader/Libraries/Settings.cs +++ b/src/AppsDownloader/Libraries/Settings.cs @@ -93,9 +93,11 @@ internal static void Initialize() { WinApi.NativeHelper.SetProcessDPIAware(); - Log.FileDir = Path.Combine(CorePaths.TempDir, "Logs"); if (Log.DebugMode > 0) + { + Log.FileDir = Path.Combine(CorePaths.TempDir, "Logs"); DirectoryEx.Create(Log.FileDir); + } Ini.SetFile(PathEx.LocalDir, "..", "Settings.ini"); Ini.SortBySections = new[] diff --git a/src/AppsLauncher/Libraries/Settings.cs b/src/AppsLauncher/Libraries/Settings.cs index 87a4199..e182c9c 100644 --- a/src/AppsLauncher/Libraries/Settings.cs +++ b/src/AppsLauncher/Libraries/Settings.cs @@ -244,9 +244,11 @@ internal static void Initialize() { WinApi.NativeHelper.SetProcessDPIAware(); - Log.FileDir = Path.Combine(CorePaths.TempDir, "Logs"); if (Log.DebugMode > 0) + { + Log.FileDir = Path.Combine(CorePaths.TempDir, "Logs"); DirectoryEx.Create(Log.FileDir); + } Ini.SetFile(PathEx.LocalDir, "Settings.ini"); Ini.SortBySections = new[] diff --git a/src/AppsLauncherUpdater/Libraries/Settings.cs b/src/AppsLauncherUpdater/Libraries/Settings.cs index b832213..a4f319d 100644 --- a/src/AppsLauncherUpdater/Libraries/Settings.cs +++ b/src/AppsLauncherUpdater/Libraries/Settings.cs @@ -41,9 +41,11 @@ internal static void Initialize() { WinApi.NativeHelper.SetProcessDPIAware(); - Log.FileDir = Path.Combine(CorePaths.TempDir, "Logs"); if (Log.DebugMode > 0) + { + Log.FileDir = Path.Combine(CorePaths.TempDir, "Logs"); DirectoryEx.Create(Log.FileDir); + } Ini.SetFile(CorePaths.HomeDir, "Settings.ini"); Ini.SortBySections = new[]