opt.: share on desktop (#405)

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-06-22 22:50:17 +08:00
committed by GitHub
parent da8b6a9010
commit d785209eb6
8 changed files with 123 additions and 119 deletions

View File

@@ -70,8 +70,10 @@ Future<void> _initApp() async {
_setupDebug();
final windowSize = Stores.setting.windowSize.fetch().toSize();
final hideTitleBar = Stores.setting.hideTitleBar.fetch();
print('windowSize: $windowSize, hideTitleBar: $hideTitleBar');
SystemUIs.initDesktopWindow(
hideTitleBar: Stores.setting.hideTitleBar.fetch(),
hideTitleBar: hideTitleBar,
size: windowSize,
listener: WindowSizeListener.instance,
);