Cleanup: Rename USER_APP_LOCK_UI_LAYOUT

There will be other settings that lock other aspects of the
UI layout (e.g., resizing of editors). So better to name
this setting what it actually handles (the corners).

New name: USER_APP_LOCK_CORNER_SPLIT

Differential Revision: D12516
This commit is contained in:
Dalai Felinto 2021-09-15 13:06:23 +02:00
parent 08aa0eb15d
commit c938d9a0e5
3 changed files with 3 additions and 3 deletions

View File

@ -882,7 +882,7 @@ static void area_azone_init(wmWindow *win, const bScreen *screen, ScrArea *area)
return;
}
if (U.app_flag & USER_APP_LOCK_UI_LAYOUT) {
if (U.app_flag & USER_APP_LOCK_CORNER_SPLIT) {
return;
}

View File

@ -1135,7 +1135,7 @@ typedef enum eUserpref_TableAPI {
/** #UserDef.app_flag */
typedef enum eUserpref_APP_Flag {
USER_APP_LOCK_UI_LAYOUT = (1 << 0),
USER_APP_LOCK_CORNER_SPLIT = (1 << 0),
} eUserpref_APP_Flag;
/** #UserDef.statusbar_flag */

View File

@ -4591,7 +4591,7 @@ static void rna_def_userdef_view(BlenderRNA *brna)
RNA_def_property_update(prop, 0, "rna_UserDef_weight_color_update");
prop = RNA_def_property(srna, "show_layout_ui", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_negative_sdna(prop, NULL, "app_flag", USER_APP_LOCK_UI_LAYOUT);
RNA_def_property_boolean_negative_sdna(prop, NULL, "app_flag", USER_APP_LOCK_CORNER_SPLIT);
RNA_def_property_ui_text(
prop, "Editor Corner Splitting", "Split and join editors by dragging from corners");
RNA_def_property_update(prop, 0, "rna_userdef_screen_update");