From 438a5987130b27cd454ec093540824cd52b71d2c Mon Sep 17 00:00:00 2001 From: HolonProduction Date: Sat, 8 Jul 2023 18:10:57 +0200 Subject: [PATCH] Update FileDialog button activity when file_mode is changed. (cherry picked from commit cfac7c9a9aa45be2bf6de6097cca6c91b9d0fbf3) --- scene/gui/file_dialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scene/gui/file_dialog.cpp b/scene/gui/file_dialog.cpp index e1309020a78..f7507640c82 100644 --- a/scene/gui/file_dialog.cpp +++ b/scene/gui/file_dialog.cpp @@ -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 {