Another round of plugin-scan-dialog updates

* Fix API calls (pack_start)
* Fix logic update sensitivity in response to callbacks
* Cleanup white-space and re-indent

TODO: invert timeout behavior: opt-in to timeouts, not opt-out.
This commit is contained in:
Robin Gareus 2021-07-22 06:09:41 +02:00
parent e406a1bd41
commit 4d57c1e85b
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 61 additions and 80 deletions

View file

@ -35,17 +35,18 @@ public:
void start ();
private:
Gtk::Frame format_frame;
Gtk::Label message;
Gtk::Label timeout_info;
Gtk::ProgressBar pbar;
Gtk::CheckButton btn_timeout_all;
ArdourWidgets::ArdourButton btn_timeout_one;
ArdourWidgets::ArdourButton btn_cancel_all;
ArdourWidgets::ArdourButton btn_cancel_one;
bool cache_only;
bool verbose;
bool delayed_close;
Gtk::Frame format_frame;
Gtk::Label message;
Gtk::Label timeout_info;
Gtk::ProgressBar pbar;
Gtk::CheckButton btn_timeout_all;
ArdourWidgets::ArdourButton btn_timeout_one;
ArdourWidgets::ArdourButton btn_cancel_all;
ArdourWidgets::ArdourButton btn_cancel_one;
bool cache_only;
bool verbose;
bool delayed_close;
void on_hide ();
@ -54,7 +55,7 @@ private:
void cancel_scan_timeout_all ();
void cancel_scan_timeout_one ();
void show_interactive_ctrls (bool show = true);
void disable_per_plugin_interaction ();
void plugin_scan_timeout (int timeout);
void message_handler (std::string type, std::string plugin, bool can_cancel);