mirror of
https://github.com/crskycode/GARbro.git
synced 2024-11-27 07:34:00 +08:00
comment.
This commit is contained in:
parent
154699160b
commit
774b7e6d9c
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user