(GUI): asynchronous archive open.

This commit is contained in:
morkt
2017-03-05 08:31:27 +04:00
parent 9606b673c2
commit 79a9e05dc6
4 changed files with 96 additions and 60 deletions

View File

@@ -176,15 +176,15 @@ namespace GARbro.GUI
}
}
void OnCreateComplete (object sender, RunWorkerCompletedEventArgs e)
async void OnCreateComplete (object sender, RunWorkerCompletedEventArgs e)
{
m_progress_dialog.Dispose();
m_main.Activate();
if (null == m_pending_error)
{
Settings.Default.appLastCreatedArchive = m_arc_name;
m_main.Dispatcher.Invoke (() => {
m_main.ChangePosition (new DirectoryPosition (m_arc_name));
await m_main.Dispatcher.Invoke (async () => {
await m_main.ChangePosition (new DirectoryPosition (m_arc_name));
});
}
else