Skip to content

Commit

Permalink
Update FileDialog button activity when file_mode is changed.
Browse files Browse the repository at this point in the history
  • Loading branch information
HolonProduction committed Jul 8, 2023
1 parent c3b0a92 commit cfac7c9
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 cfac7c9

Please sign in to comment.