Shameful hack to hide RecordView when sampling_rate == 0.

Switch visibility of child widgets -- UI fields/controls vs. a black rectangle. TODO: Fix painting and state management, which right now is just terrible.
This commit is contained in:
Jared Boone
2016-05-25 11:33:23 -07:00
parent ff57b3c8cb
commit 6a294e7d0e
2 changed files with 13 additions and 0 deletions

View File

@@ -169,12 +169,15 @@ RecordView::RecordView(
buffer_count { buffer_count }
{
add_children({ {
&rect_background,
&button_record,
&text_record_filename,
&text_record_dropped,
&text_time_available,
} });
rect_background.set_parent_rect({ { 0, 0 }, size() });
button_record.on_select = [this](ImageButton&) {
this->toggle();
};