Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide autoload category from general project settings #39670

Closed
wants to merge 1 commit into from

Conversation

stijn-h
Copy link
Contributor

@stijn-h stijn-h commented Jun 19, 2020

Fixes #39639
Fixes godotengine/godot-proposals#1082
Bugsquad edit: Fixes #24453

While Autoload has its own tab in the Project Settings, it was also added as a category under the general settings. The issue is about incorrect autoload names, but the autoload is unnecessary here and can be removed. This commit removes Autoload from the General tab.

@Calinou Calinou added cherrypick:3.x Considered for cherry-picking into a future 3.x release enhancement topic:editor labels Jun 19, 2020
@Calinou Calinou added this to the 4.0 milestone Jun 19, 2020
@akien-mga akien-mga requested review from a team and reduz February 25, 2021 16:09
Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this bug is no longer reproducible in the new project settings editor that's present in the master branch. Therefore, I suggest remaking this pull request against the 3.x branch where the old project settings editor will still be in use.

Edit: It's still reproducible in master as of c7fefe5.

@@ -234,7 +234,7 @@ void SectionedInspector::update_category_list() {
continue;
}

if (pi.name.find(":") != -1 || pi.name == "script" || pi.name == "resource_name" || pi.name == "resource_path" || pi.name == "resource_local_to_scene" || pi.name.begins_with("_global_script")) {
if (pi.name.find(":") != -1 || pi.name == "script" || pi.name == "resource_name" || pi.name == "resource_path" || pi.name == "resource_local_to_scene" || pi.name.begins_with("_global_script") || pi.name.begins_with("autoload")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a comment to explain the change, as it's not obvious at a glance:

Suggested change
if (pi.name.find(":") != -1 || pi.name == "script" || pi.name == "resource_name" || pi.name == "resource_path" || pi.name == "resource_local_to_scene" || pi.name.begins_with("_global_script") || pi.name.begins_with("autoload")) {
// Hide the Autoload section as it has a dedicated tab in the Project Settings editor.
if (pi.name.find(":") != -1 || pi.name == "script" || pi.name == "resource_name" || pi.name == "resource_path" || pi.name == "resource_local_to_scene" || pi.name.begins_with("_global_script") || pi.name.begins_with("autoload")) {

@stijn-h stijn-h closed this Sep 1, 2021
@stijn-h stijn-h deleted the hide-autoload-category branch September 1, 2021 21:18
@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment