fix: respect title bar setting after exiting PiP (#1825)

This commit is contained in:
wuhenzha
2026-02-04 19:50:52 +08:00
committed by GitHub
parent 50561b8dc1
commit c099738802

View File

@@ -239,7 +239,8 @@ class PlPlayerController {
Future<void> exitDesktopPip() {
isDesktopPip = false;
return Future.wait([
windowManager.setTitleBarStyle(TitleBarStyle.normal),
windowManager.setTitleBarStyle(
Pref.showWindowTitleBar ? TitleBarStyle.normal : TitleBarStyle.hidden),
windowManager.setMinimumSize(const Size(400, 700)),
windowManager.setBounds(_lastWindowBounds),
setAlwaysOnTop(false),