mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 21:55:34 +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…
Reference in New Issue
Block a user