opt.: sftp rename

This commit is contained in:
lollipopkit
2023-09-25 19:47:20 +08:00
parent 4d06a52e99
commit 153bfc191d
9 changed files with 53 additions and 53 deletions

View File

@@ -245,10 +245,8 @@ class _LocalStoragePageState extends State<LocalStoragePage> {
}
final result = await AppRoute.editor(
path: file.absolute.path,
).go<String>(context);
final f = File(file.absolute.path);
if (result != null) {
f.writeAsString(result);
).go<bool>(context);
if (result == true) {
context.showSnackBar(l10n.saved);
setState(() {});
}