From 7acad849322f969e458431a8ac81b57ad4d3ce95 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sat, 4 Jul 2020 21:04:57 +0300 Subject: [PATCH] nyx: Disable TSEC keys status for T210B01 --- nyx/nyx_gui/frontend/gui_info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nyx/nyx_gui/frontend/gui_info.c b/nyx/nyx_gui/frontend/gui_info.c index 795a191..1bf47fc 100644 --- a/nyx/nyx_gui/frontend/gui_info.c +++ b/nyx/nyx_gui/frontend/gui_info.c @@ -1867,6 +1867,8 @@ void create_tab_info(lv_theme_t *th, lv_obj_t *parent) lv_label_set_static_text(label_btn, SYMBOL_KEY" TSEC Keys"); lv_obj_align(btn2, btn, LV_ALIGN_OUT_RIGHT_TOP, LV_DPI * 4 / 9, 0); lv_btn_set_action(btn2, LV_BTN_ACTION_CLICK, _create_window_tsec_keys_status); + if (h_cfg.t210b01) + lv_btn_set_state(btn2, LV_BTN_STATE_INA); lv_obj_t *label_txt2 = lv_label_create(h1, NULL); lv_label_set_recolor(label_txt2, true);