fix: Duplicate title bars when showing system title bar (#1021)

* fix: Fix the issue with the display of the window title bar

When initializing the window, add the configuration to set the title bar display, ensuring consistency with user settings

* build: Update fl_lib to  main for changes

* build: Update fl_lib dependency to version v1.0.359
This commit is contained in:
GT610
2026-01-22 21:04:46 +08:00
committed by GitHub
parent 87d7feb823
commit e49b31ed25
3 changed files with 4 additions and 3 deletions

View File

@@ -106,6 +106,7 @@ Future<void> _initWindow() async {
final windowStateProp = Stores.setting.windowState;
final windowState = windowStateProp.fetch();
final hideTitleBar = Stores.setting.hideTitleBar.fetch();
WindowFrameConfig.setShowCaption(hideTitleBar);
await SystemUIs.initDesktopWindow(
hideTitleBar: hideTitleBar,
size: windowState?.size ?? Size(947, 487),