diff options
Diffstat (limited to 'dialog.cpp')
-rw-r--r-- | dialog.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -12,6 +12,8 @@ Dialog::Dialog(wxWindow *parent) : DialogUI(parent) { + m_log = new wxLogTextCtrl(m_textctrl); + wxLog::SetActiveTarget(m_log); RefreshDrives(); } @@ -88,5 +90,10 @@ void Dialog::SetProgress(size_t current, size_t total, const char *filename ) { if (m_gauge->GetRange() != total) m_gauge->SetRange(total); - m_gauge->SetValue(current); + if (m_gauge->GetValue() != current) + m_gauge->SetValue(current); + if (filename != NULL) { + wxString msg = wxString::FromAscii(filename); + wxLogMessage(msg); + } } |