load_iconset return {} if path doesn't exists
这个提交存在于:
父节点
da873080af
当前提交
8607a9ecad
共有 1 个文件被更改,包括 1 次插入 和 4 次删除
|
|
@ -2175,10 +2175,7 @@ _('If "%s" accepts this request you will know his or her status.') %jid)
|
||||||
if not iconset:
|
if not iconset:
|
||||||
iconset = 'dcraven'
|
iconset = 'dcraven'
|
||||||
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '32x32')
|
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '32x32')
|
||||||
if os.path.exists(path):
|
|
||||||
self.jabber_state_images['32'] = self.load_iconset(path)
|
self.jabber_state_images['32'] = self.load_iconset(path)
|
||||||
else:
|
|
||||||
self.jabber_state_images['32'] = {}
|
|
||||||
|
|
||||||
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16')
|
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16')
|
||||||
self.jabber_state_images['16'] = self.load_iconset(path)
|
self.jabber_state_images['16'] = self.load_iconset(path)
|
||||||
|
|
|
||||||
正在加载…
添加表格
在新工单中引用