diff --git a/main.cpp b/main.cpp index 7a27099..b1b6a29 100644 --- a/main.cpp +++ b/main.cpp @@ -22,13 +22,14 @@ static std::string user_home; std::vector channels; std::unordered_map> videos; -std::optional selected_channel; +size_t selected_channel; size_t current_video_count = 0; size_t selected_video = 0; size_t videos_per_page = 0; size_t current_page_count = 0; size_t title_offset = 0; bool any_title_in_next_half = false; +bool clear_channels_on_change = false; static termpaint_attr* get_attr(const AttributeSetType type, const bool highlight=false) { @@ -58,7 +59,7 @@ void draw_channel_list(const std::vector