#146 new: option of server tab old ui

This commit is contained in:
lollipopkit
2023-08-30 15:41:41 +08:00
parent f7278fc890
commit 8004c41094
5 changed files with 198 additions and 128 deletions

View File

@@ -345,11 +345,12 @@ class _SftpPageState extends State<SftpPage> with AfterLayoutMixin {
onTap: () => _download(context, file),
),
// Only show decompress option when the file is a compressed file
if (_canDecompress(file.filename)) ListTile(
leading: const Icon(Icons.folder_zip),
title: Text(_s.decompress),
onTap: () => _decompress(context, file),
),
if (_canDecompress(file.filename))
ListTile(
leading: const Icon(Icons.folder_zip),
title: Text(_s.decompress),
onTap: () => _decompress(context, file),
),
]);
}
showRoundDialog(