diff options
Diffstat (limited to 'atom_inspector_nk.c')
-rw-r--r-- | atom_inspector_nk.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/atom_inspector_nk.c b/atom_inspector_nk.c index 00d937c..6a555af 100644 --- a/atom_inspector_nk.c +++ b/atom_inspector_nk.c @@ -297,7 +297,7 @@ _atom_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *dat nk_list_view_end(&lview); } - nk_layout_row_dynamic(ctx, widget_h, 4); + nk_layout_row_dynamic(ctx, widget_h, 5); { const int32_t state_overwrite = nk_check_label(ctx, "overwrite", handle->state.overwrite); if(state_overwrite != handle->state.overwrite) @@ -329,6 +329,13 @@ _atom_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *dat handle->ttl_dirty = true; sratom_set_pretty_numbers(handle->sratom, handle->state.pretty); } + + const int32_t state_time = nk_check_label(ctx, "time", handle->state.time); + if(state_time != handle->state.time) + { + handle->state.time = state_time; + _toggle(handle, handle->urid.time, handle->state.time, true); + } } const bool max_reached = handle->n_item >= MAX_LINES; |