mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 11:06:30 +00:00
fix paths
This commit is contained in:
@@ -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),
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user