An open-source cross-platform alternative to AirDrop
fix: do not show open button in receive history if not available
Tien Do Nam95cb15d9bf2f
diff --git a/lib/pages/receive_history_page.dart b/lib/pages/receive_history_page.dartindex 773e1302..1af8f3e0 100644--- a/lib/pages/receive_history_page.dart+++ b/lib/pages/receive_history_page.dart@@ -28,6 +28,9 @@ enum _EntryOption {}}+const _optionsAll = _EntryOption.values;+final _optionsWithoutOpen = [_EntryOption.info, _EntryOption.delete];+class ReceiveHistoryPage extends ConsumerWidget {const ReceiveHistoryPage({Key? key}) : super(key: key);@@ -117,7 +120,7 @@ class ReceiveHistoryPage extends ConsumerWidget {},color: Theme.of(context).cardColorWithElevation,itemBuilder: (BuildContext context) {- return _EntryOption.values.map((e) {+ return (entry.path != null ? _optionsAll : _optionsWithoutOpen).map((e) {return PopupMenuItem<_EntryOption>(value: e,child: Text(e.label),