opt. for settings page

This commit is contained in:
lollipopkit
2023-06-26 21:00:13 +08:00
parent f0b31a9b08
commit dc63d902e5
5 changed files with 28 additions and 22 deletions

View File

@@ -104,6 +104,7 @@ Future<void> _doUpdate(String url, BuildContext context, S s) async {
// rmdir Download
Future<void> _rmDownloadApks() async {
if (!isAndroid) return;
final dlDir = Directory(pathJoin((await docDir).path, 'Download'));
if (await dlDir.exists()) {
await dlDir.delete(recursive: true);