Properly hide GraphEdit's minimap
This commit is contained in:
parent
bd42a6c51e
commit
2ff1c48e0c
1 changed files with 6 additions and 1 deletions
|
@ -1558,7 +1558,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);
|
||||
}
|
||||
}
|
||||
|
||||
void GraphEdit::set_connection_lines_thickness(float p_thickness) {
|
||||
|
|
Loading…
Reference in a new issue