From 5233233945083a891bc1c87ed9cb67b55be7c912 Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 14 Apr 2017 04:17:33 +0400 Subject: [PATCH] (GUI): disable main window when extraction is in progress. --- GUI/GarExtract.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GUI/GarExtract.cs b/GUI/GarExtract.cs index 0da4bcdd..3be377db 100644 --- a/GUI/GarExtract.cs +++ b/GUI/GarExtract.cs @@ -267,6 +267,7 @@ namespace GARbro.GUI m_convert_audio = !m_skip_audio && Settings.Default.appConvertAudio; m_progress_dialog.DoWork += (s, e) => ExtractWorker (file_list); m_progress_dialog.RunWorkerCompleted += OnExtractComplete; + m_main.IsEnabled = false; m_progress_dialog.ShowDialog (m_main); m_extract_in_progress = true; } @@ -414,6 +415,7 @@ namespace GARbro.GUI void OnExtractComplete (object sender, RunWorkerCompletedEventArgs e) { + m_main.IsEnabled = true; m_extract_in_progress = false; m_progress_dialog.Dispose(); m_main.Activate();