Merge pull request #54740 from LightningAA/project-manager-sort-by-most-recent-as-default
This commit is contained in:
commit
776c6bf6fb
3 changed files with 4 additions and 4 deletions
|
@ -722,7 +722,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
|||
|
||||
/* Extra config */
|
||||
|
||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "project_manager/sorting_order", 0, "Name,Path,Last Edited")
|
||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "project_manager/sorting_order", 0, "Last Edited,Name,Path")
|
||||
|
||||
if (p_extra_config.is_valid()) {
|
||||
if (p_extra_config->has_section("init_projects") && p_extra_config->has_section_key("init_projects", "list")) {
|
||||
|
|
|
@ -1121,7 +1121,7 @@ struct ProjectListComparator {
|
|||
};
|
||||
|
||||
ProjectList::ProjectList() {
|
||||
_order_option = FilterOption::NAME;
|
||||
_order_option = FilterOption::EDIT_DATE;
|
||||
_scroll_children = memnew(VBoxContainer);
|
||||
_scroll_children->set_h_size_flags(Control::SIZE_EXPAND_FILL);
|
||||
add_child(_scroll_children);
|
||||
|
@ -2606,9 +2606,9 @@ ProjectManager::ProjectManager() {
|
|||
hb->add_child(filter_option);
|
||||
|
||||
Vector<String> sort_filter_titles;
|
||||
sort_filter_titles.push_back(TTR("Last Edited"));
|
||||
sort_filter_titles.push_back(TTR("Name"));
|
||||
sort_filter_titles.push_back(TTR("Path"));
|
||||
sort_filter_titles.push_back(TTR("Last Edited"));
|
||||
|
||||
for (int i = 0; i < sort_filter_titles.size(); i++) {
|
||||
filter_option->add_item(sort_filter_titles[i]);
|
||||
|
|
|
@ -42,9 +42,9 @@ class ProjectDialog;
|
|||
class ProjectList;
|
||||
|
||||
enum FilterOption {
|
||||
EDIT_DATE,
|
||||
NAME,
|
||||
PATH,
|
||||
EDIT_DATE,
|
||||
};
|
||||
|
||||
class ProjectManager : public Control {
|
||||
|
|
Loading…
Add table
Reference in a new issue