Some tweaks for macOS target (#1260)

* fix macOS save video cover

* not hide title bar for macOS
This commit is contained in:
Kofua
2025-09-14 18:14:19 +08:00
committed by GitHub
parent d3f4ba4b4a
commit b9a55ccbce
3 changed files with 8 additions and 6 deletions

View File

@@ -78,14 +78,12 @@ void main() async {
);
} else if (Utils.isDesktop) {
await windowManager.ensureInitialized();
WindowOptions windowOptions = WindowOptions(
minimumSize: const Size(400, 720),
size: const Size(1180, 720),
WindowOptions windowOptions = const WindowOptions(
minimumSize: Size(400, 720),
size: Size(1180, 720),
center: true,
skipTaskbar: false,
titleBarStyle: Platform.isMacOS
? TitleBarStyle.hidden
: TitleBarStyle.normal,
titleBarStyle: TitleBarStyle.normal,
title: Constants.appName,
);
windowManager.waitUntilReadyToShow(windowOptions, () async {

View File

@@ -10,5 +10,7 @@
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict>
</plist>

View File

@@ -6,5 +6,7 @@
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.files.user-selected.read-write</key>
<true/>
</dict>
</plist>