Fix extensions update not showing on the status bar by default

Ref !123495
This commit is contained in:
Dalai Felinto 2024-06-21 12:30:10 +10:00 committed by Campbell Barton
parent 38e25d7838
commit 49725106af
3 changed files with 6 additions and 6 deletions

@ -239,7 +239,7 @@ const UserDef U_default = {
.collection_instance_empty_size = 1.0f,
.statusbar_flag = STATUSBAR_SHOW_VERSION,
.statusbar_flag = STATUSBAR_SHOW_VERSION | STATUSBAR_SHOW_EXTENSIONS_UPDATES,
.file_preview_type = USER_FILE_PREVIEW_AUTO,
.sequencer_editor_flag = USER_SEQ_ED_SIMPLE_TWEAKING,

@ -29,7 +29,7 @@ extern "C" {
/* Blender file format version. */
#define BLENDER_FILE_VERSION BLENDER_VERSION
#define BLENDER_FILE_SUBVERSION 62
#define BLENDER_FILE_SUBVERSION 63
/* Minimum Blender version that supports reading file written with the current
* version. Older Blender versions will test this and cancel loading the file, showing a warning to

@ -984,10 +984,6 @@ void blo_do_versions_userdef(UserDef *userdef)
}
}
if (!USER_VERSION_ATLEAST(402, 50)) {
userdef->statusbar_flag |= STATUSBAR_SHOW_EXTENSIONS_UPDATES;
}
if (!USER_VERSION_ATLEAST(402, 51)) {
userdef->sequencer_editor_flag |= USER_SEQ_ED_SIMPLE_TWEAKING;
}
@ -1016,6 +1012,10 @@ void blo_do_versions_userdef(UserDef *userdef)
userdef->network_connection_limit = 5;
}
if (!USER_VERSION_ATLEAST(402, 63)) {
userdef->statusbar_flag |= STATUSBAR_SHOW_EXTENSIONS_UPDATES;
}
/**
* Always bump subversion in BKE_blender_version.h when adding versioning
* code here, and wrap it inside a USER_VERSION_ATLEAST check.