Merge pull request #31373 from KoBeWi/project_manager_alzheimer

Fix Project Manager not remembering sorting option
This commit is contained in:
Rémi Verschelde 2019-08-14 13:44:42 +02:00 committed by GitHub
commit ed5c03528d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1312,7 +1312,7 @@ void ProjectList::set_filter_option(ProjectListFilter::FilterOption p_option) {
void ProjectList::set_order_option(ProjectListFilter::FilterOption p_option) {
if (_order_option != p_option) {
_order_option = p_option;
EditorSettings::get_singleton()->set("project_manager/sorting_order", (int)_filter_option);
EditorSettings::get_singleton()->set("project_manager/sorting_order", (int)_order_option);
EditorSettings::get_singleton()->save();
}
}