Extensions: Rename Local Cache

The existing name was not clear. Renamed it to: "Clean Files After
Install".

I changed the RNA boolean to be positive, to match the name change.

Note: This only changes the UI label and tooltip.

TODOs to be tackled separately:
* Rename the RNA property to match its UI name.
* Make it True by default.
* Doversion.

Designed with Pablo Vazquez.

Part of #120589.
This commit is contained in:
Dalai Felinto 2024-04-12 18:12:47 +02:00
parent af09a475e4
commit fae60893c7

@ -6663,12 +6663,10 @@ static void rna_def_userdef_filepaths_extension_repo(BlenderRNA *brna)
/* NOTE(@ideasman42): this is intended to be used by a package manger component
* which is not yet integrated. */
prop = RNA_def_property(srna, "use_cache", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_negative_sdna(prop, nullptr, "flag", USER_EXTENSION_REPO_FLAG_NO_CACHE);
RNA_def_property_ui_text(
prop,
"Local Cache",
"Store packages in local cache, "
"otherwise downloaded package files are immediately deleted after installation");
RNA_def_property_boolean_sdna(prop, nullptr, "flag", USER_EXTENSION_REPO_FLAG_NO_CACHE);
RNA_def_property_ui_text(prop,
"Clean Files After Install",
"Downloaded package files are deleted after installation");
prop = RNA_def_property(srna, "enabled", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_negative_sdna(prop, nullptr, "flag", USER_EXTENSION_REPO_FLAG_DISABLED);