From 774b7e6d9cffd94ea4c281063b4cad7af3420a08 Mon Sep 17 00:00:00 2001 From: morkt Date: Thu, 2 Feb 2017 10:59:15 +0400 Subject: [PATCH] comment. --- GUI/GarExtract.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/GUI/GarExtract.cs b/GUI/GarExtract.cs index 6ba569e2..aa8b31af 100644 --- a/GUI/GarExtract.cs +++ b/GUI/GarExtract.cs @@ -342,21 +342,15 @@ namespace GARbro.GUI IntPtr HideProgressDialog () { -// IntPtr parent = new WindowInteropHelper (m_main).Handle; -// var found = FindWindowEx (parent, IntPtr.Zero, null, m_progress_dialog.WindowTitle); + // i just want to temporarily hide progress dialog when error window pops up, or at least force it + // to background so it can't be interacted with until error dialog is resolved. Unfortunately + // it's impossible with Ookii.Dialogs implementation aside from ugly hacks like this one. var found = FindWindowEx (IntPtr.Zero, IntPtr.Zero, null, m_progress_dialog.WindowTitle); if (IntPtr.Zero != found) ShowWindow (found, SW_HIDE); return found; } - bool ShowErrorDialog (string error_text) - { - var dialog = new FileErrorDialog ("File extraction error", error_text); - dialog.Owner = m_main; - return dialog.ShowDialog() ?? false; - } - void ExtractImage (ArcFile arc, Entry entry, ImageFormat target_format) { using (var decoder = arc.OpenImage (entry))