summaryrefslogtreecommitdiff
path: root/shell/shell.c
diff options
context:
space:
mode:
authorSergio Vieira <sergiosvieira@gmail.com>2020-10-08 13:04:54 -0300
committerLeandro Pereira <leandro@hardinfo.org>2020-10-09 18:25:13 -0700
commit4d8e68f34fabd3e387df3246cfc69425cea65eed (patch)
tree151db0b2df500adf284059fe86b26fce3f3df9df /shell/shell.c
parent7665215da2cb168631938465550220be9349bf3a (diff)
Show graph's title at selecting sensor item
Diffstat (limited to 'shell/shell.c')
-rw-r--r--shell/shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/shell.c b/shell/shell.c
index 1bcdb714..bfa5dc8c 100644
--- a/shell/shell.c
+++ b/shell/shell.c
@@ -844,6 +844,8 @@ static gboolean update_field(gpointer data)
if (shell->view_type == SHELL_VIEW_LOAD_GRAPH &&
gtk_tree_selection_iter_is_selected(shell->info_tree->selection,
item->iter)) {
+
+ load_graph_set_title(shell->loadgraph, fu->field_name);
load_graph_update(shell->loadgraph, atof(value));
}