From ca2a2b904a74ca7a0e153932e88181f61cb9a118 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 11 Oct 2021 18:53:24 +0200 Subject: allow 'back' to unselect country --- src/reducer/anastasis_api_redux.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/reducer/anastasis_api_redux.c b/src/reducer/anastasis_api_redux.c index 59770f3..27b17f8 100644 --- a/src/reducer/anastasis_api_redux.c +++ b/src/reducer/anastasis_api_redux.c @@ -1764,11 +1764,17 @@ ANASTASIS_redux_action (const json_t *state, "select_continent", &select_continent }, + /* Deprecated alias for "back" from that state, should be removed eventually. */ { ANASTASIS_GENERIC_STATE_COUNTRY_SELECTING, "unselect_continent", &unselect_continent }, + { + ANASTASIS_GENERIC_STATE_COUNTRY_SELECTING, + "back", + &unselect_continent + }, { ANASTASIS_GENERIC_STATE_COUNTRY_SELECTING, "select_country", @@ -1779,11 +1785,6 @@ ANASTASIS_redux_action (const json_t *state, "select_continent", &select_continent }, - { - ANASTASIS_GENERIC_STATE_COUNTRY_SELECTING, - "unselect_continent", - &unselect_continent - }, { ANASTASIS_GENERIC_STATE_USER_ATTRIBUTES_COLLECTING, "enter_user_attributes", -- cgit v1.2.3