mirror of
https://github.com/crskycode/GARbro.git
synced 2026-06-07 22:29:14 +08:00
(GUI): asynchronous archive open.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user