fixup! fix(player): consider stringDict before any CreateDocument (fastfix)
This commit is contained in:
parent
dea34ceeb8
commit
c92c1a24c1
2 changed files with 5 additions and 0 deletions
|
|
@ -57,6 +57,10 @@ export default class DOMManager extends ListWalker<Message> {
|
|||
this.stylesManager = new StylesManager(screen, setCssLoading)
|
||||
}
|
||||
|
||||
setStringDict(stringDict: Record<number,string>) {
|
||||
this.stringDict = stringDict
|
||||
}
|
||||
|
||||
append(m: Message): void {
|
||||
if (m.tp === MType.SetNodeScroll) {
|
||||
let scrollManager = this.nodeScrollManagers.get(m.id)
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ export default class PagesManager extends ListWalker<DOMManager> {
|
|||
if (m.tp === MType.StringDict) {
|
||||
if (this.currentStringDict[m.key] !== undefined) {
|
||||
this.currentStringDict = {} /* refresh stringDict */
|
||||
this.last?.setStringDict(this.currentStringDict)
|
||||
}
|
||||
this.currentStringDict[m.key] = m.value
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue