*now* it is good though I think
This commit is contained in:
parent
d029114ef0
commit
fcee95bd60
1 changed files with 3 additions and 1 deletions
|
@ -78,9 +78,11 @@ class ColorManager:
|
|||
@classmethod
|
||||
def for_theme(cls, theme):
|
||||
from c3nav.mapdata.models import MapUpdate
|
||||
if cls.cache_key != MapUpdate.current_cache_key():
|
||||
current_cache_key = MapUpdate.current_cache_key()
|
||||
if cls.cache_key != current_cache_key:
|
||||
cls.default_theme = None
|
||||
cls.themes = {}
|
||||
cls.cache_key = current_cache_key
|
||||
if theme is None:
|
||||
if cls.default_theme is None:
|
||||
cls.default_theme = ThemeColorManager()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue