From 35764a720032034c4a69f32832ac0723c43ea40a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 23 Sep 2018 12:22:41 +0200 Subject: [PATCH] 'select/touch callback' - if action OK callback is bound for ST_UINT and other settings, bind to action OK callback instead of action right --- menu/cbs/menu_cbs_select.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/menu/cbs/menu_cbs_select.c b/menu/cbs/menu_cbs_select.c index 81eede715f..b7b27dfc95 100644 --- a/menu/cbs/menu_cbs_select.c +++ b/menu/cbs/menu_cbs_select.c @@ -67,7 +67,10 @@ static int action_select_default(const char *path, const char *label, unsigned t case ST_UINT: case ST_SIZE: case ST_FLOAT: - action = MENU_ACTION_RIGHT; + if (cbs->action_ok) + action = MENU_ACTION_OK; + else + action = MENU_ACTION_RIGHT; break; case ST_PATH: case ST_DIR: