Switch to unified view

a/src/ohradio.cxx b/src/ohradio.cxx
...
...
475
}
475
}
476
476
477
void OHRadio::setActive(bool onoff) {
477
void OHRadio::setActive(bool onoff) {
478
    m_active = onoff;
478
    m_active = onoff;
479
    if (m_active) {
479
    if (m_active) {
480
        if (m_id)
480
        if (m_id) {
481
            // Only restore state if it was saved
482
            if (m_mpdsavedstate.status.state != MpdStatus::MPDS_UNK) {
481
            m_dev->m_mpdcli->restoreState(m_mpdsavedstate);
483
                m_dev->m_mpdcli->restoreState(m_mpdsavedstate);
484
            }
485
        }
482
        maybeWakeUp(true);
486
        maybeWakeUp(true);
483
    } else {
487
    } else {
484
        m_dev->m_mpdcli->saveState(m_mpdsavedstate);
488
        m_dev->m_mpdcli->saveState(m_mpdsavedstate);
485
        m_dev->m_mpdcli->clearQueue();
489
        m_dev->m_mpdcli->clearQueue();
486
        iStop();
490
        iStop();