mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 08:06:31 +00:00
fix paths
This commit is contained in:
@@ -36,7 +36,7 @@ public class Config
|
||||
{
|
||||
if (!File.Exists(CONFIG_PATH))
|
||||
{
|
||||
var exePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!;
|
||||
var exePath = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory)!;
|
||||
return new Config
|
||||
{
|
||||
VideosDirectory = Path.Combine(exePath, DEFAULT_VIDEO_DIR),
|
||||
|
||||
@@ -235,7 +235,7 @@ public partial class MainWindow
|
||||
{
|
||||
Title = "Open Video folder",
|
||||
IsFolderPicker = true,
|
||||
InitialDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)
|
||||
InitialDirectory = Path.GetDirectoryName(AppDomain.CurrentDomain.BaseDirectory)
|
||||
};
|
||||
if (dlg.ShowDialog() != CommonFileDialogResult.Ok)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user