options_behavior: disable "hide cursor"'s slider when needed

This commit is contained in:
Boris Faure 2019-10-01 22:43:05 +02:00
parent 61bb7955da
commit fe63070139
1 changed files with 1 additions and 0 deletions

View File

@ -644,6 +644,7 @@ options_behavior(Evas_Object *opbox, Evas_Object *term)
elm_slider_unit_format_set(o, _("%1.1f s"));
elm_slider_indicator_format_set(o, _("%1.1f s"));
elm_slider_min_max_set(o, 0.0, CONFIG_CURSOR_IDLE_TIMEOUT_MAX);
elm_object_disabled_set(o, config->hide_cursor >= CONFIG_CURSOR_IDLE_TIMEOUT_MAX);
elm_slider_value_set(o, config->hide_cursor);
elm_box_pack_end(bx, o);
evas_object_show(o);