Merge pull request #46564 from pycbouh/graph-edit-hide-minimap-properly-3.2

[3.2] Properly hide GraphEdit's minimap
This commit is contained in:
Rémi Verschelde 2021-03-01 17:54:40 +01:00 committed by GitHub
commit 998ce22ea3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1620,7 +1620,12 @@ bool GraphEdit::is_minimap_enabled() const {
}
void GraphEdit::_minimap_toggled() {
minimap->update();
if (is_minimap_enabled()) {
minimap->set_visible(true);
minimap->update();
} else {
minimap->set_visible(false);
}
}
HBoxContainer *GraphEdit::get_zoom_hbox() {