mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
(GUI): restore focus to listview after file operations.
This commit is contained in:
@@ -261,6 +261,7 @@ namespace GARbro.GUI
|
|||||||
m_main.PopupError (m_pending_error.Message, guiStrings.TextMediaConvertError);
|
m_main.PopupError (m_pending_error.Message, guiStrings.TextMediaConvertError);
|
||||||
}
|
}
|
||||||
m_main.Activate();
|
m_main.Activate();
|
||||||
|
m_main.ListViewFocus();
|
||||||
m_main.RefreshView();
|
m_main.RefreshView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -419,6 +419,7 @@ namespace GARbro.GUI
|
|||||||
m_extract_in_progress = false;
|
m_extract_in_progress = false;
|
||||||
m_progress_dialog.Dispose();
|
m_progress_dialog.Dispose();
|
||||||
m_main.Activate();
|
m_main.Activate();
|
||||||
|
m_main.ListViewFocus();
|
||||||
if (!m_main.ViewModel.IsArchive)
|
if (!m_main.ViewModel.IsArchive)
|
||||||
{
|
{
|
||||||
m_main.Dispatcher.Invoke (m_main.RefreshView);
|
m_main.Dispatcher.Invoke (m_main.RefreshView);
|
||||||
|
|||||||
@@ -443,7 +443,7 @@ namespace GARbro.GUI
|
|||||||
lv_SelectItem (ViewModel.Find (name));
|
lv_SelectItem (ViewModel.Find (name));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void lv_Focus ()
|
public void ListViewFocus ()
|
||||||
{
|
{
|
||||||
if (CurrentDirectory.SelectedIndex != -1)
|
if (CurrentDirectory.SelectedIndex != -1)
|
||||||
{
|
{
|
||||||
@@ -747,7 +747,7 @@ namespace GARbro.GUI
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
PushViewModel (GetNewViewModel (path));
|
PushViewModel (GetNewViewModel (path));
|
||||||
lv_Focus();
|
ListViewFocus();
|
||||||
}
|
}
|
||||||
catch (Exception X)
|
catch (Exception X)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user