update_silence_rects ();
update_threshold_line ();
+ _progress_bar.set_text (_("Analyzing"));
+ apply_button->set_sensitive (false);
+
/* Create a thread which runs while the dialogue is open to compute the silence regions */
Completed.connect (_completed_connection, invalidator(*this), boost::bind (&StripSilenceDialog::update, this), gui_context ());
_thread_should_finish = false;
// called by parent when starting to progess (dialog::run returned),
// but before the dialog is destoyed.
+ _interthread_info.cancel = true;
+
for (list<ViewInterval>::iterator v = views.begin(); v != views.end(); ++v) {
v->view->drop_silent_frames ();
}
{
update_threshold_line ();
update_silence_rects ();
+ _progress_bar.set_text ("");
+ apply_button->set_sensitive(true);
}
void
return;
}
+ _progress_bar.set_text (_("Analyzing"));
+ apply_button->set_sensitive (false);
+
/* Cancel any current run */
_interthread_info.cancel = true;