mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Show translated event names in tooltip
In order for this to work we need to compare against the event type instead of the event name - which makes much more sense to do, anyway. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7eaa2c62c4
commit
bcdd6192fe
2 changed files with 8 additions and 5 deletions
|
|
@ -12,6 +12,7 @@
|
|||
#include "divelist.h"
|
||||
#include "planner.h"
|
||||
#include "gettext.h"
|
||||
#include "libdivecomputer/parser.h"
|
||||
|
||||
#define TIMESTEP 1 /* second */
|
||||
#define DECOTIMESTEP 60 /* seconds. Unit of deco stop times */
|
||||
|
|
@ -263,7 +264,7 @@ struct dive *create_dive_from_plan(struct diveplan *diveplan)
|
|||
/* Check for SetPoint change */
|
||||
if (oldpo2 != po2) {
|
||||
if (lasttime)
|
||||
add_event(dc, lasttime, 20, 0, po2, "SP change"); // SAMPLE_EVENT_PO2
|
||||
add_event(dc, lasttime, SAMPLE_EVENT_PO2, 0, po2, "SP change");
|
||||
oldpo2 = po2;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue