improve slide view

This commit is contained in:
lixianjing 2022-09-30 12:08:28 +08:00
parent 6467f8e8a4
commit 32ab14a65c
2 changed files with 5 additions and 3 deletions

View File

@ -5,6 +5,7 @@
* 修复digit_clock在destroy的时候找不到窗口导致警告的问(感谢智明提供补丁)
* 修复popup弹窗不见的问题(感谢智明提供补丁)
* 修复sizeof 的警告问题(感谢智明提供补丁)
* 修复非focused时候设置slide_view激活子控件的逻辑(感谢智明提供补丁)
2022/09/29
* 支持设置自定义键值(感谢兆坤提供补丁)

View File

@ -798,9 +798,10 @@ static ret_t slide_view_on_idle_init_save_target(const idle_info_t* idle) {
slide_view_t* slide_view = NULL;
return_value_if_fail(idle != NULL, RET_BAD_PARAMS);
slide_view = SLIDE_VIEW(idle->ctx);
slide_view_restore_target(WIDGET(slide_view));
slide_view->init_idle_id = TK_INVALID_ID;
if (slide_view->widget.focused) {
slide_view_restore_target(WIDGET(slide_view));
slide_view->init_idle_id = TK_INVALID_ID;
}
return RET_OK;
}