Merge pull request #95048 from KoBeWi/keep_the_party_going

Add `keep_screen_on` editor setting
This commit is contained in:
Rémi Verschelde 2024-08-27 22:27:35 +02:00
commit 012ccbc301
No known key found for this signature in database
GPG key ID: C3336907360768E1
6 changed files with 7 additions and 7 deletions

View file

@ -93,6 +93,7 @@ void ProjectManager::_notification(int p_what) {
} break;
case NOTIFICATION_READY: {
DisplayServer::get_singleton()->screen_set_keep_on(EDITOR_GET("interface/editor/keep_screen_on"));
const int default_sorting = (int)EDITOR_GET("project_manager/sorting_order");
filter_option->select(default_sorting);
project_list->set_order_option(default_sorting);