Skip to content

Commit

Permalink
draw() upon toggle()
Browse files Browse the repository at this point in the history
  • Loading branch information
rooklift committed Apr 25, 2021
1 parent 4759782 commit f9c8767
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/95_hub.js
Original file line number Diff line number Diff line change
Expand Up @@ -2043,14 +2043,15 @@ let hub_props = {
config[option] = !config[option];
this.save_config();

this.info_handler.must_draw_infobox();

// Cases that have additional actions after...

if (option === "searchmoves_buttons") {
this.tree.node.searchmoves = []; // This is reasonable regardless of which way the toggle went.
this.handle_search_params_change();
}

this.info_handler.must_draw_infobox();
this.draw();
},

toggle_flip: function() { // config.flip should not be directly set, call this function instead.
Expand Down

0 comments on commit f9c8767

Please sign in to comment.