From e49b31ed2517338e0a2567c88cbdc02482406ce8 Mon Sep 17 00:00:00 2001 From: GT610 <79314033+GT-610@users.noreply.github.com> Date: Thu, 22 Jan 2026 21:04:46 +0800 Subject: [PATCH] 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 --- lib/main.dart | 1 + pubspec.lock | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index e45a6e0d..992a5668 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -106,6 +106,7 @@ Future _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), diff --git a/pubspec.lock b/pubspec.lock index ff4dea6e..6dca64be 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -497,8 +497,8 @@ packages: dependency: "direct main" description: path: "." - ref: "v1.0.358" - resolved-ref: c8e55d054875bb3ccdab9894a01fe82d173dc54e + ref: "v1.0.359" + resolved-ref: "8201d47e3e9e6c5fcec186e7457151a36ea10b8e" url: "https://github.com/lppcg/fl_lib" source: git version: "0.0.1" diff --git a/pubspec.yaml b/pubspec.yaml index a6841eea..fcebb678 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -66,7 +66,7 @@ dependencies: fl_lib: git: url: https://github.com/lppcg/fl_lib - ref: v1.0.358 + ref: v1.0.359 dependency_overrides: # webdav_client_plus: