options_themepv: ease CPU usage, do not blink the cursor

This commit is contained in:
Boris Faure 2020-11-25 21:42:51 +01:00
parent 378ccbfc51
commit 7f3bfab6d6
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 4 additions and 1 deletions

View File

@ -345,7 +345,10 @@ options_theme_preview_add(Evas_Object *parent,
o = elm_layout_add(parent);
theme_apply(o, config, "terminology/cursor",
file, cs, EINA_TRUE);
elm_layout_signal_emit(o, "focus,in", "terminology");
if (colors_mode)
elm_layout_signal_emit(o, "focus,in,noblink", "terminology");
else
elm_layout_signal_emit(o, "focus,in", "terminology");
evas_object_show(o);
evas_object_data_set(oo, "cursor", o);
elm_grid_pack(oo, o, 0, 0, 10, 10);