mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-04 18:20:42 +00:00
FIX daily leftsidebar: display user data flags only if enabled.
This commit is contained in:
parent
26260b61e9
commit
7eedac6d90
@ -1721,6 +1721,11 @@ void Daily::Load(QDate date)
|
||||
schema::Channel & chan = schema::channel[code];
|
||||
// if (!chan.enabled()) continue;
|
||||
QString data;
|
||||
if (
|
||||
( code == CPAP_UserFlag1 || code == CPAP_UserFlag2) &&
|
||||
( ( !p_profile->cpap->userEventFlagging()) || (p_profile->cpap->clinicalMode())) ){
|
||||
continue;
|
||||
}
|
||||
float channelHours = hours;
|
||||
if (chan.machtype() != MT_CPAP) {
|
||||
// Use device type hours (if available) rather than CPAP hours, since
|
||||
|
Loading…
Reference in New Issue
Block a user