(GUI): restore focus to listview after file operations.

This commit is contained in:
morkt
2018-01-12 19:57:56 +04:00
parent c3f4343558
commit 466c159441
3 changed files with 4 additions and 2 deletions

View File

@@ -443,7 +443,7 @@ namespace GARbro.GUI
lv_SelectItem (ViewModel.Find (name));
}
private void lv_Focus ()
public void ListViewFocus ()
{
if (CurrentDirectory.SelectedIndex != -1)
{
@@ -747,7 +747,7 @@ namespace GARbro.GUI
try
{
PushViewModel (GetNewViewModel (path));
lv_Focus();
ListViewFocus();
}
catch (Exception X)
{