commit 78a12b161987b06ea3e1f81eaf6fd4bbee065d48
parent 732008af40f975f98cc84598b4025e6194915718
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 26 Aug 2021 22:23:20 +0200
-update action handling
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/anastasis/anastasis-gtk_action.c b/src/anastasis/anastasis-gtk_action.c
@@ -3291,6 +3291,8 @@ AG_action_cb (void *cls,
#endif
if (TALER_EC_NONE != error_code)
{
+ /* TODO: maybe also render 'detail'
+ if present in state? */
AG_error ("Error #%d: %s\n",
(int) error_code,
TALER_ErrorCode_get_hint (error_code));
@@ -3300,7 +3302,10 @@ AG_action_cb (void *cls,
return;
}
}
- else
+ if ( (NULL != json_object_get (response,
+ "backup_state")) ||
+ (NULL != json_object_get (response,
+ "recovery_state")) )
{
json_decref (AG_redux_state);
AG_stop_long_action ();