mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-23 13:45:34 +08:00
(GUI): restore focus to listview after file operations.
This commit is contained in:
parent
c3f4343558
commit
466c159441
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user