Help Browser: Fix back button being visible when dialog opens
This commit is contained in:
parent
6144b5e778
commit
bbf6df2ddf
1 changed files with 4 additions and 1 deletions
|
@ -217,7 +217,10 @@ void help_browser::on_topic_select()
|
|||
|
||||
history_.push_back(topic_id);
|
||||
history_pos_ = std::prev(history_.end());
|
||||
find_widget<button>(this, "back", false).set_visible(widget::visibility::visible);
|
||||
|
||||
if(history_pos_ != history_.begin()) {
|
||||
find_widget<button>(this, "back", false).set_visible(widget::visibility::visible);
|
||||
}
|
||||
find_widget<button>(this, "next", false).set_visible(widget::visibility::hidden);
|
||||
|
||||
const unsigned topic_i = parsed_pages_.at(topic_id);
|
||||
|
|
Loading…
Add table
Reference in a new issue