Version 248a

Quick fix for I believe users with very old clients that store colour in
an old way
This commit is contained in:
Hydrus Network Developer 2017-03-22 20:00:00 -05:00
parent b37f93ba3b
commit 7181b82ad7
1 changed files with 4 additions and 0 deletions

View File

@ -1410,6 +1410,8 @@ class ListBoxTagsColourOptions( ListBoxTags ):
for ( namespace, colour ) in initial_namespace_colours.items():
colour = tuple( colour ) # tuple to convert from list, for oooold users who have list colours
self._AppendTerm( ( namespace, colour ) )
@ -1467,6 +1469,8 @@ class ListBoxTagsColourOptions( ListBoxTags ):
def SetNamespaceColour( self, namespace, colour ):
colour = tuple( colour )
for ( existing_namespace, existing_colour ) in self._terms:
if existing_namespace == namespace: