diff --git a/lib/Frontend/pages/action_selector.dart b/lib/Frontend/pages/action_selector.dart index 13009aa9..4b9246e4 100644 --- a/lib/Frontend/pages/action_selector.dart +++ b/lib/Frontend/pages/action_selector.dart @@ -46,12 +46,22 @@ class _ActionSelectorState extends ConsumerState { title: Text(actionsSelectScreen()), actions: [ IconButton( - onPressed: () => context.pop(selected), + onPressed: () { + if (selected.isEmpty) { + context.pop(true); + } else { + context.pop(selected); + } + }, icon: const Icon(Icons.save), tooltip: triggersSelectSaveLabel(), ), IconButton( - onPressed: () => context.pop(true), + onPressed: () { + setState(() { + selected.clear(); + }); + }, icon: const Icon(Icons.clear), tooltip: triggersSelectClearLabel(), )