mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
save last visited directory in MainWindow instead of App.
This commit is contained in:
parent
6005016a07
commit
474548bae5
@ -74,7 +74,6 @@ namespace GARbro.GUI
|
|||||||
|
|
||||||
void ApplicationExit (object sender, ExitEventArgs e)
|
void ApplicationExit (object sender, ExitEventArgs e)
|
||||||
{
|
{
|
||||||
Settings.Default.appLastDirectory = Directory.GetCurrentDirectory();
|
|
||||||
Settings.Default.Save();
|
Settings.Default.Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,6 +105,16 @@ namespace GARbro.GUI
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
Settings.Default.lvSortColumn = "";
|
Settings.Default.lvSortColumn = "";
|
||||||
|
|
||||||
|
string cwd = CurrentPath;
|
||||||
|
if (!string.IsNullOrEmpty (cwd))
|
||||||
|
{
|
||||||
|
if (ViewModel.IsArchive)
|
||||||
|
cwd = Path.GetDirectoryName (cwd);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
cwd = Directory.GetCurrentDirectory();
|
||||||
|
Settings.Default.appLastDirectory = cwd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user