Skip to content

Commit

Permalink
Merge pull request #97004 from Giganzo/file_dialog_size
Browse files Browse the repository at this point in the history
Fix FileDialog default size
  • Loading branch information
akien-mga committed Sep 18, 2024
2 parents 7b1d169 + a863c38 commit a80e57c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/classes/FileDialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
If [code]true[/code], the dialog will show hidden files.
[b]Note:[/b] This property is ignored by native file dialogs on Linux.
</member>
<member name="size" type="Vector2i" setter="set_size" getter="get_size" overrides="Window" default="Vector2i(640, 360)" />
<member name="title" type="String" setter="set_title" getter="get_title" overrides="Window" default="&quot;Save a File&quot;" />
<member name="use_native_dialog" type="bool" setter="set_use_native_dialog" getter="get_use_native_dialog" default="false">
If [code]true[/code], [member access] is set to [constant ACCESS_FILESYSTEM], and it is supported by the current [DisplayServer], OS native dialog will be used instead of custom one.
Expand Down
1 change: 1 addition & 0 deletions scene/gui/file_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,7 @@ FileDialog::FileDialog() {
update_dir();

set_hide_on_ok(false);
set_size(Size2(640, 360));

if (register_func) {
register_func(this);
Expand Down

0 comments on commit a80e57c

Please sign in to comment.