fix; set subtitle before init (#1742)

* tweka

* fix; set subtitle before init
This commit is contained in:
My-Responsitories
2025-11-15 15:34:23 +08:00
committed by GitHub
parent c89d6a5a59
commit e589f27195
3 changed files with 18 additions and 19 deletions

View File

@@ -644,8 +644,8 @@ class HeaderControlState extends State<HeaderControl> {
lanDoc: name.split('.').firstOrNull ?? name,
),
)
..vttSubtitles[length] = sub
..setSubtitle(length + 1);
..vttSubtitles[length] = sub;
await videoDetailCtr.setSubtitle(length + 1);
}
}
} catch (e) {