mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
cache the css as a deck var, don't accidentally send it in sync
This commit is contained in:
parent
fd1953bfb5
commit
5616e679f5
2 changed files with 2 additions and 0 deletions
|
@ -1315,6 +1315,7 @@ answerAlign, 0 from cardModels""")])
|
||||||
(hexifyID(row[0]), row[1]) for row in self.s.all("""
|
(hexifyID(row[0]), row[1]) for row in self.s.all("""
|
||||||
select id, lastFontColour from cardModels""")])
|
select id, lastFontColour from cardModels""")])
|
||||||
self.css = css
|
self.css = css
|
||||||
|
self.setVar("cssCache", css)
|
||||||
return css
|
return css
|
||||||
|
|
||||||
def copyModel(self, oldModel):
|
def copyModel(self, oldModel):
|
||||||
|
|
|
@ -606,6 +606,7 @@ values
|
||||||
del d['path']
|
del d['path']
|
||||||
del d['syncName']
|
del d['syncName']
|
||||||
del d['version']
|
del d['version']
|
||||||
|
del d['css']
|
||||||
# these may be deleted before bundling
|
# these may be deleted before bundling
|
||||||
if 'models' in d: del d['models']
|
if 'models' in d: del d['models']
|
||||||
if 'currentModel' in d: del d['currentModel']
|
if 'currentModel' in d: del d['currentModel']
|
||||||
|
|
Loading…
Reference in a new issue