mirror of
https://github.com/crskycode/GARbro.git
synced 2024-12-24 03:44:13 +08:00
fixed recent files navigation.
This commit is contained in:
parent
0b0d27c628
commit
d1c8038d85
@ -746,11 +746,13 @@ namespace GARbro.GUI
|
||||
|
||||
private void OpenFile (string filename)
|
||||
{
|
||||
if (filename == CurrentPath)
|
||||
if (filename == CurrentPath || string.IsNullOrEmpty (filename))
|
||||
return;
|
||||
try
|
||||
{
|
||||
PushViewModel (GetNewViewModel (filename));
|
||||
VFS.FullPath = new string[] { filename, "" };
|
||||
var vm = new DirectoryViewModel (VFS.FullPath, VFS.GetFiles(), VFS.IsVirtual);
|
||||
PushViewModel (vm);
|
||||
if (null != VFS.CurrentArchive)
|
||||
SetStatusText (VFS.CurrentArchive.Description);
|
||||
lv_SelectItem (0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user