@@ -104,7 +104,7 @@ class _DownloadsExportingScreenState extends State<DownloadsExportingScreen> {
104
104
"分别导出CBZS.ZIP" + (! isPro ? "\n (发电后使用)" : "" ),
105
105
),
106
106
Container (height: 20 ),
107
- if (Platform .isAndroid ) ...[
107
+ if (true ) ...[
108
108
_buildButtonInner (
109
109
_exportPdf,
110
110
"分别导Pdf" + (! isPro ? "\n (发电后使用)" : "" ),
@@ -142,6 +142,9 @@ class _DownloadsExportingScreenState extends State<DownloadsExportingScreen> {
142
142
defaultToast (context, "请先发电鸭" );
143
143
return ;
144
144
}
145
+ if (Platform .isMacOS) {
146
+ await chooseEx (context);
147
+ }
145
148
if (! await confirmDialog (
146
149
context, "导出确认" , "将您所选的漫画分别导出JMI${showExportPath ()}" )) {
147
150
return ;
@@ -184,44 +187,9 @@ class _DownloadsExportingScreenState extends State<DownloadsExportingScreen> {
184
187
defaultToast (context, "请先发电鸭" );
185
188
return ;
186
189
}
187
- // if (Platform.isAndroid) {
188
- // } else {
189
- // // check pdf lib
190
- // if (await methods.checkLibpdfium() == "") {
191
- // var down = await confirmDialog(context, "需要下载PDF支持插件", "是否下载PDF支持插件?");
192
- // if (down) {
193
- // exportMessage = "正在下载PDF支持插件";
194
- // setState(() {
195
- // exporting = true;
196
- // });
197
- // try {
198
- // await methods.downloadLibpdfium();
199
- // defaultToast(context, "PDF支持插件下载成功, 请重试");
200
- // } catch (e, s) {
201
- // defaultToast(context, "PDF支持插件下载失败");
202
- // } finally {
203
- // setState(() {
204
- // exporting = false;
205
- // });
206
- // }
207
- // }
208
- // return;
209
- // }
210
- // try {
211
- // await methods.check_binding();
212
- // } catch (e, s) {
213
- // var msg = "$e";
214
- // // 300字输出一行
215
- // var idx = 0;
216
- // while (idx < msg.length) {
217
- // var out = msg.substring(idx, min(idx + 300, msg.length)) + "\n";
218
- // print(out);
219
- // idx += 300;
220
- // }
221
- // defaultToast(context, "pdf loading error $e");
222
- // return;
223
- // }
224
- // }
190
+ if (Platform .isMacOS) {
191
+ await chooseEx (context);
192
+ }
225
193
if (! await confirmDialog (
226
194
context, "导出确认" , "将您所选的漫画分别导出PDF${showExportPath ()}" )) {
227
195
return ;
@@ -258,6 +226,9 @@ class _DownloadsExportingScreenState extends State<DownloadsExportingScreen> {
258
226
defaultToast (context, "请先发电鸭" );
259
227
return ;
260
228
}
229
+ if (Platform .isMacOS) {
230
+ await chooseEx (context);
231
+ }
261
232
if (! await confirmDialog (
262
233
context, "导出确认" , "将您所选的漫画分别导出cbzs.zip${showExportPath ()}" )) {
263
234
return ;
@@ -300,6 +271,9 @@ class _DownloadsExportingScreenState extends State<DownloadsExportingScreen> {
300
271
defaultToast (context, "请先发电鸭" );
301
272
return ;
302
273
}
274
+ if (Platform .isMacOS) {
275
+ await chooseEx (context);
276
+ }
303
277
if (! await confirmDialog (
304
278
context, "导出确认" , "将您所选的漫画分别导出ZIP${showExportPath ()}" )) {
305
279
return ;
@@ -342,6 +316,9 @@ class _DownloadsExportingScreenState extends State<DownloadsExportingScreen> {
342
316
defaultToast (context, "请先发电鸭" );
343
317
return ;
344
318
}
319
+ if (Platform .isMacOS) {
320
+ await chooseEx (context);
321
+ }
345
322
if (! await confirmDialog (
346
323
context, "导出确认" , "将您所选的漫画分别导出JPEGS.ZIP${showExportPath ()}" )) {
347
324
return ;
0 commit comments