Skip to content

Commit

Permalink
Merge pull request #79211 from HolonProduction/file-dialog-button-update
Browse files Browse the repository at this point in the history
Update FileDialog button activity when file_mode is changed.
  • Loading branch information
akien-mga committed Jul 9, 2023
2 parents 1453dc9 + cfac7c9 commit 1017077
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scene/gui/file_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,8 @@ void FileDialog::set_file_mode(FileMode p_mode) {
} else {
tree->set_select_mode(Tree::SELECT_SINGLE);
}

get_ok_button()->set_disabled(_is_open_should_be_disabled());
}

FileDialog::FileMode FileDialog::get_file_mode() const {
Expand Down

0 comments on commit 1017077

Please sign in to comment.