mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-08 22:58:52 +08:00
fixed recent files navigation.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user