From 8ac7bd4ac1e8e6d1630cfa47c493fe097d873b31 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 7 Dec 2020 23:28:52 +0100 Subject: [PATCH] cc_frm_button: align item name dependently to caption Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/189ab7128a903ed5ffa7ceb68768da7d515d5670 Author: Thilo Graf Date: 2020-12-07 (Mon, 07 Dec 2020) --- src/gui/components/cc_frm_button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/components/cc_frm_button.cpp b/src/gui/components/cc_frm_button.cpp index cb3a5d4ce..9a02af760 100644 --- a/src/gui/components/cc_frm_button.cpp +++ b/src/gui/components/cc_frm_button.cpp @@ -95,7 +95,7 @@ void CComponentsButton::initVarButton( const int& x_pos, const int& y_pos, const fb_pixel_t color_frame, fb_pixel_t color_body, fb_pixel_t color_shadow) { cc_item_type.id = CC_ITEMTYPE_BUTTON; - cc_item_type.name = "cc_base_button"; + cc_item_type.name = caption.empty() ? "cc_button" : caption; x = cc_xr = cc_xr_old = x_old = x_pos; y = cc_yr = cc_yr_old = y_old = y_pos;