Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix UpdateTimer to allow enable/disable of timers created by timerecs and autorecs #152

Merged
merged 2 commits into from
Dec 23, 2015

Conversation

ksooo
Copy link
Member

@ksooo ksooo commented Dec 22, 2015

@Glenn-1990 can please confirm that this fix works as I do not have tvh 4.1

@ksooo ksooo added the Fix label Dec 22, 2015
const auto &it = m_recordings.find(timer.iClientIndex);
if (it != m_recordings.end() &&
((it->second.IsEnabled() && timer.state == PVR_TIMER_STATE_DISABLED) || // enable => disable
(!it->second.IsEnabled() && timer.state != PVR_TIMER_STATE_DISABLED))) // disable => enable
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it->second.IsEnabled() == (timer.state == PVR_TIMER_STATE_DISABLED)

;)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hehe. Thx.

@Glenn-1990
Copy link
Contributor

@ksooo it's working, thanks!

ksooo added a commit that referenced this pull request Dec 23, 2015
Fix UpdateTimer to allow enable/disable of timers created by timerecs and autorecs
@ksooo ksooo merged commit 43288db into kodi-pvr:master Dec 23, 2015
@ksooo ksooo deleted the fix-enable-disable-timers branch December 23, 2015 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants