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
aca1aa60
Commit
aca1aa60
authored
Mar 17, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed adding css classes to messages
parent
33c7f377
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
chatwindow.py
blink/chatwindow.py
+6
-6
No files found.
blink/chatwindow.py
View file @
aca1aa60
...
...
@@ -109,14 +109,14 @@ class ChatMessageStyle(object):
#
class
Link
(
object
):
__slots__
=
'prev'
,
'next'
,
'
__next__'
,
'
key'
,
'__weakref__'
__slots__
=
'prev'
,
'next'
,
'key'
,
'__weakref__'
class
OrderedSet
(
MutableSet
):
def
__init__
(
self
,
iterable
=
None
):
self
.
__hardroot
=
Link
()
# sentinel node for doubly linked list
self
.
__root
=
root
=
proxy
(
self
.
__hardroot
)
root
.
prev
=
root
.
__next__
=
root
root
.
prev
=
root
.
next
=
root
self
.
__map
=
{}
if
iterable
is
not
None
:
self
|=
iterable
...
...
@@ -129,10 +129,10 @@ class OrderedSet(MutableSet):
def
__iter__
(
self
):
root
=
self
.
__root
curr
=
root
.
__next__
curr
=
root
.
next
while
curr
is
not
root
:
yield
curr
.
key
curr
=
curr
.
__next__
curr
=
curr
.
next
def
__reversed__
(
self
):
root
=
self
.
__root
...
...
@@ -157,13 +157,13 @@ class OrderedSet(MutableSet):
if
key
in
self
.
__map
:
link
=
self
.
__map
.
pop
(
key
)
link_prev
=
link
.
prev
link_next
=
link
.
__next__
link_next
=
link
.
next
link_prev
.
next
=
link_next
link_next
.
prev
=
link_prev
def
clear
(
self
):
root
=
self
.
__root
root
.
prev
=
root
.
__next__
=
root
root
.
prev
=
root
.
next
=
root
self
.
__map
.
clear
()
...
...
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