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:
@@ -106,6 +106,7 @@ Future<void> _initWindow() async {
|
|||||||
final windowStateProp = Stores.setting.windowState;
|
final windowStateProp = Stores.setting.windowState;
|
||||||
final windowState = windowStateProp.fetch();
|
final windowState = windowStateProp.fetch();
|
||||||
final hideTitleBar = Stores.setting.hideTitleBar.fetch();
|
final hideTitleBar = Stores.setting.hideTitleBar.fetch();
|
||||||
|
WindowFrameConfig.setShowCaption(hideTitleBar);
|
||||||
await SystemUIs.initDesktopWindow(
|
await SystemUIs.initDesktopWindow(
|
||||||
hideTitleBar: hideTitleBar,
|
hideTitleBar: hideTitleBar,
|
||||||
size: windowState?.size ?? Size(947, 487),
|
size: windowState?.size ?? Size(947, 487),
|
||||||
|
|||||||
@@ -497,8 +497,8 @@ packages:
|
|||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
path: "."
|
path: "."
|
||||||
ref: "v1.0.358"
|
ref: "v1.0.359"
|
||||||
resolved-ref: c8e55d054875bb3ccdab9894a01fe82d173dc54e
|
resolved-ref: "8201d47e3e9e6c5fcec186e7457151a36ea10b8e"
|
||||||
url: "https://github.com/lppcg/fl_lib"
|
url: "https://github.com/lppcg/fl_lib"
|
||||||
source: git
|
source: git
|
||||||
version: "0.0.1"
|
version: "0.0.1"
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ dependencies:
|
|||||||
fl_lib:
|
fl_lib:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/lppcg/fl_lib
|
url: https://github.com/lppcg/fl_lib
|
||||||
ref: v1.0.358
|
ref: v1.0.359
|
||||||
|
|
||||||
dependency_overrides:
|
dependency_overrides:
|
||||||
# webdav_client_plus:
|
# webdav_client_plus:
|
||||||
|
|||||||
Reference in New Issue
Block a user