File tree Expand file tree Collapse file tree
material_maker/windows/file_dialog Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ func _ready() -> void:
1818 if file_mode == FileMode .FILE_MODE_SAVE_FILE :
1919 ok_button_text = tr ("Save" )
2020
21+ if mm_globals .config .has_section_key ("file_dialog" , "display_mode" ):
22+ display_mode = mm_globals .config .get_value ("file_dialog" , "display_mode" )
23+
2124 use_native_dialog = mm_globals .get_config ("ui_use_native_file_dialogs" )
2225 _content_scale_factor = mm_globals .main_window .get_window ().content_scale_factor
2326 content_scale_factor = _content_scale_factor
@@ -100,6 +103,7 @@ func _on_child_entered_tree(node: Node) -> void:
100103func _exit_tree () -> void :
101104 mm_globals .config .set_value ("file_dialog" , "recents" , JSON .stringify (get_recent_list ()))
102105 mm_globals .config .set_value ("file_dialog" , "favorites" , JSON .stringify (get_favorite_list ()))
106+ mm_globals .config .set_value ("file_dialog" , "display_mode" , display_mode )
103107
104108func load_fav_recents () -> void :
105109 var json = JSON .new ()
You can’t perform that action at this time.
0 commit comments