fix(userIcon): 在Account接口异常时显示默认用户头像
This commit is contained in:
parent
594d455a38
commit
09bcddf500
Binary file not shown.
After Width: | Height: | Size: 75 KiB |
|
@ -2,5 +2,6 @@
|
|||
<qresource prefix="/res">
|
||||
<file>icon/application-x-desktop.png</file>
|
||||
<file>icon/pad_mainpower.svg</file>
|
||||
<file>icon/default-community-image.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
@ -52,7 +52,7 @@ QString SidebarButtonUtils::getRealName()
|
|||
|
||||
QString SidebarButtonUtils::getIconFile()
|
||||
{
|
||||
if (m_currentUserInfo.iconFile.isEmpty()) {
|
||||
if (m_currentUserInfo.iconFile.isEmpty() || m_currentUserInfo.iconFile.endsWith("/.face")) {
|
||||
return {DEFAULT_USER_ICON_FILE};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue