mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 04:58:41 +00:00
fix: font size
This commit is contained in:
@@ -68,7 +68,8 @@ class _PlDanmakuState extends State<PlDanmaku> {
|
||||
@override
|
||||
void didUpdateWidget(PlDanmaku oldWidget) {
|
||||
super.didUpdateWidget(oldWidget);
|
||||
if (oldWidget.notFullscreen != widget.notFullscreen) {
|
||||
if (oldWidget.notFullscreen != widget.notFullscreen &&
|
||||
!DanmakuOptions.sameFontScale) {
|
||||
_controller?.updateOption(
|
||||
DanmakuOptions.get(notFullscreen: widget.notFullscreen),
|
||||
);
|
||||
|
||||
@@ -995,7 +995,8 @@ class _LiveDanmakuState extends State<LiveDanmaku> {
|
||||
@override
|
||||
void didUpdateWidget(LiveDanmaku oldWidget) {
|
||||
super.didUpdateWidget(oldWidget);
|
||||
if (oldWidget.notFullscreen != widget.notFullscreen) {
|
||||
if (oldWidget.notFullscreen != widget.notFullscreen &&
|
||||
!DanmakuOptions.sameFontScale) {
|
||||
plPlayerController.danmakuController?.updateOption(
|
||||
DanmakuOptions.get(notFullscreen: widget.notFullscreen),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user