experimental support for set new storage path on iOS

This commit is contained in:
boa-z
2024-11-09 11:04:34 +08:00
parent 856ec23586
commit 7bf8cf569f
6 changed files with 80 additions and 4 deletions

View File

@@ -32,11 +32,16 @@ class _AppSettingsState extends State<AppSettings> {
title: "Set New Storage Path".tl,
actionTitle: "Set".tl,
callback: () async {
if (App.isMobile) {
var result;
if (App.isAndroid) {
context.showMessage(message: "Not supported".tl);
return;
}
var result = await selectDirectory();
else if (App.isIOS) {
result = await selectDirectoryIOS();
} else {
result = await selectDirectory();
}
if (result == null) return;
var loadingDialog = showLoadingDialog(
App.rootContext,