mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Feature to show or hide heart rate graph
Adds new push button "HR" to the button bar on the dive profile to toggle display of heart rate. TODO: New icon for the heart rate button is needed. Fixes #485 Signed-off-by: Lakshman Anumolu <acrlakshman@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
20bde81023
commit
6a8d929876
10 changed files with 70 additions and 9 deletions
|
|
@ -1321,7 +1321,7 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me
|
|||
}
|
||||
}
|
||||
}
|
||||
if (entry->heartbeat)
|
||||
if (entry->heartbeat && prefs.heart_rate)
|
||||
put_format(b, translate("gettextFromC", "heartbeat: %d\n"), entry->heartbeat);
|
||||
if (entry->bearing)
|
||||
put_format(b, translate("gettextFromC", "bearing: %d\n"), entry->bearing);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue