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:
parent
95df77323f
commit
4ceccb23df
@ -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"},
|
||||
|
Loading…
Reference in New Issue
Block a user