Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
e3dacee0
Commit
e3dacee0
authored
11 years ago
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use sha1 instead of sha512 to identify icon content
parent
892bc7af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
mainwindow.py
blink/mainwindow.py
+1
-1
presence.py
blink/presence.py
+1
-1
No files found.
blink/mainwindow.py
View file @
e3dacee0
...
...
@@ -419,7 +419,7 @@ class MainWindow(base_class, ui_class):
icon
=
icon_manager
.
store_file
(
'avatar'
,
filename
)
icon_contents
=
icon_manager
.
get_image
(
'avatar'
)
if
icon_contents
is
not
None
:
hash
=
hashlib
.
sha
512
(
icon_contents
)
.
hexdigest
()
hash
=
hashlib
.
sha
1
(
icon_contents
)
.
hexdigest
()
blink_settings
.
presence
.
icon
=
IconDescriptor
(
FileURL
(
icon
.
filename
),
hash
)
else
:
icon_manager
.
remove
(
'avatar'
)
...
...
This diff is collapsed.
Click to expand it.
blink/presence.py
View file @
e3dacee0
...
...
@@ -268,7 +268,7 @@ class PresencePublicationHandler(object):
blink_settings
.
save
()
if
status_icon
:
icon_hash
=
hashlib
.
sha
512
(
status_icon
.
data
)
.
hexdigest
()
icon_hash
=
hashlib
.
sha
1
(
status_icon
.
data
)
.
hexdigest
()
icon_desc
=
IconDescriptor
(
notification
.
sender
.
status_icon
.
uri
,
icon_hash
)
if
not
blink_settings
.
presence
.
icon
or
blink_settings
.
presence
.
icon
.
etag
!=
icon_hash
:
icon
=
icon_manager
.
store_data
(
'avatar'
,
status_icon
.
data
)
...
...
This diff is collapsed.
Click to expand it.
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