From 42ec39aa6c405e38fad18f5bd154f08a59382d60 Mon Sep 17 00:00:00 2001 From: Alastair Poole Date: Sat, 10 Oct 2020 18:18:55 +0100 Subject: [PATCH] cpu: newline. --- src/bin/ui/ui_cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/ui/ui_cpu.c b/src/bin/ui/ui_cpu.c index 671343d..95f0391 100644 --- a/src/bin/ui/ui_cpu.c +++ b/src/bin/ui/ui_cpu.c @@ -303,7 +303,6 @@ _temp_check_changed_cb(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, ad->show_cputemp = elm_check_state_get(obj); } - static void _colors_fill(Evas_Object *colors) { @@ -531,6 +530,7 @@ _graph(Ui *ui, Evas_Object *parent) evas_object_size_hint_align_set(check, FILL, FILL); evas_object_size_hint_weight_set(check, EXPAND, 0); elm_object_text_set(check, _("Overlay CPU temperatures?")); + if (!ad->cpu_temp) elm_object_disabled_set(check, 1); evas_object_smart_callback_add(check, "changed", _temp_check_changed_cb, ad); evas_object_show(check); elm_box_pack_end(hbx, check);