Micro-optimization: only recreate polarity buttons as needed

This commit is contained in:
Robin Gareus 2020-03-02 19:18:30 +01:00
parent 6120d4d43a
commit e79b762daa
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 9 additions and 2 deletions

View file

@ -345,6 +345,7 @@ private:
int _i_am_the_modifier;
std::vector<ArdourWidgets::ArdourButton*> _invert_buttons;
Gtk::Menu* _invert_menu;
uint32_t _n_polarity_invert;
StripableColorDialog _color_picker;