(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

@ -261,6 +261,7 @@ namespace GARbro.GUI
m_main.PopupError (m_pending_error.Message, guiStrings.TextMediaConvertError);
}
m_main.Activate();
m_main.ListViewFocus();
m_main.RefreshView();
}
}

View File

@ -419,6 +419,7 @@ namespace GARbro.GUI
m_extract_in_progress = false;
m_progress_dialog.Dispose();
m_main.Activate();
m_main.ListViewFocus();
if (!m_main.ViewModel.IsArchive)
{
m_main.Dispatcher.Invoke (m_main.RefreshView);

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)
{