Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim
Commits
d5368d36
Commit
d5368d36
authored
May 14, 2022
by
Daniel Brötzmann
Browse files
fix: Avatar: Remove superfluous path
parent
0b2826d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
gajim/gtk/avatar.py
View file @
d5368d36
...
@@ -469,11 +469,10 @@ def get_workspace_surface(self,
...
@@ -469,11 +469,10 @@ def get_workspace_surface(self,
surface
=
self
.
_load_surface_from_storage
(
avatar_sha
,
size
,
scale
)
surface
=
self
.
_load_surface_from_storage
(
avatar_sha
,
size
,
scale
)
if
surface
is
not
None
:
if
surface
is
not
None
:
return
clip
(
surface
,
'round-corners'
)
return
clip
(
surface
,
'round-corners'
)
else
:
# avatar_sha set, but image is missing
# avatar_sha set, but image is missing
# (e.g. avatar cache deleted)
# (e.g. avatar cache deleted)
app
.
settings
.
set_workspace_setting
(
app
.
settings
.
set_workspace_setting
(
workspace_id
,
'avatar_sha'
,
''
)
workspace_id
,
'avatar_sha'
,
''
)
rgba
=
make_rgba
(
color
or
DEFAULT_WORKSPACE_COLOR
)
rgba
=
make_rgba
(
color
or
DEFAULT_WORKSPACE_COLOR
)
letter
=
name
[:
1
].
upper
()
letter
=
name
[:
1
].
upper
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment