fix paths

This commit is contained in:
Oleksandr Bezdieniezhnykh
2024-05-18 18:53:34 +03:00
parent bc27003eb5
commit 9b94a4fbb2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ public class Config
{ {
if (!File.Exists(CONFIG_PATH)) if (!File.Exists(CONFIG_PATH))
{ {
var exePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!; var exePath = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory)!;
return new Config return new Config
{ {
VideosDirectory = Path.Combine(exePath, DEFAULT_VIDEO_DIR), VideosDirectory = Path.Combine(exePath, DEFAULT_VIDEO_DIR),
+1 -1
View File
@@ -235,7 +235,7 @@ public partial class MainWindow
{ {
Title = "Open Video folder", Title = "Open Video folder",
IsFolderPicker = true, IsFolderPicker = true,
InitialDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) InitialDirectory = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory)
}; };
if (dlg.ShowDialog() != CommonFileDialogResult.Ok) if (dlg.ShowDialog() != CommonFileDialogResult.Ok)
return; return;