mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-23 19:34:15 +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)
|
||||
{
|
||||
Settings.Default.appLastDirectory = Directory.GetCurrentDirectory();
|
||||
Settings.Default.Save();
|
||||
}
|
||||
|
||||
|
@ -105,6 +105,16 @@ namespace GARbro.GUI
|
||||
}
|
||||
else
|
||||
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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user