Extensions: change the icon of remote repositories

We were using the WORLD data-block icon before which is misleading.

Ref: !118521
This commit is contained in:
Dalai Felinto 2024-02-20 16:55:38 +01:00 committed by Campbell Barton
parent 95df77323f
commit 4ceccb23df
2 changed files with 2 additions and 2 deletions

@ -1597,7 +1597,7 @@ class USERPREF_UL_asset_libraries(UIList):
class USERPREF_UL_extension_repos(UIList):
def draw_item(self, _context, layout, _data, item, icon, _active_data, _active_propname, _index):
repo = item
icon = 'WORLD' if repo.use_remote_path else 'DISK_DRIVE'
icon = 'NETWORK_DRIVE' if repo.use_remote_path else 'DISK_DRIVE'
if self.layout_type in {'DEFAULT', 'COMPACT'}:
layout.prop(repo, "name", text="", icon=icon, emboss=False)
elif self.layout_type == 'GRID':

@ -354,7 +354,7 @@ static void PREFERENCES_OT_extension_repo_add(wmOperatorType *ot)
static const EnumPropertyItem repo_type_items[] = {
{int(bUserExtensionRepoAddType::Remote),
"REMOTE",
ICON_WORLD,
ICON_NETWORK_DRIVE,
"Add Remote Repository",
"Add a repository referencing an remote repository "
"with support for listing and updating extensions"},