30 if (is_online_allowed || was_choice_made) {
54 layout.
label(
IFACE_(
"Internet access disabled, only showing assets that are available offline."),
55 ICON_INTERNET_OFFLINE);
60 PointerRNA props = right_row.
op(
"WM_OT_context_set_boolean",
IFACE_(
"Continue Offline"), ICON_X);
61 RNA_string_set(&props,
"data_path",
"preferences.extensions.use_online_access_handled");
64 right_row.
op(
"extensions.userpref_allow_online",
IFACE_(
"Allow Online Access"), ICON_CHECKMARK);
bool is_or_contains_remote_libraries(const AssetLibraryReference &reference)
void RNA_string_set(PointerRNA *ptr, const char *name, const char *value)
@ USER_EXTENSION_FLAG_ONLINE_ACCESS_HANDLED
BannerType remote_libraries_online_access_required_banner
void RNA_boolean_set(PointerRNA *ptr, const char *name, bool value)
static void file_banner_remote_asset_libraries_layout(const SpaceFile &, ui::Layout &layout)
FileAssetSelectParams * ED_fileselect_get_asset_params(const SpaceFile *sfile)
int filelist_files_num_entries(FileList *filelist)
static bool file_banner_remote_asset_libraries_poll(const SpaceFile &sfile)
AssetLibraryReference asset_library_ref
void alignment_set(LayoutAlign alignment)
void label(StringRef name, int icon)
PointerRNA op(wmOperatorType *ot, std::optional< StringRef > name, int icon, wm::OpCallContext context, eUI_Item_Flag flag)