mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
experimental support for set new storage path on iOS
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user