fix(volume): Handle non synced mute

This commit is contained in:
Michael Carlberg 2016-06-02 18:45:48 +02:00
parent b210e5a01d
commit 331c94c248
1 changed files with 6 additions and 2 deletions

View File

@ -215,8 +215,12 @@ bool VolumeModule::handle_command(const std::string& cmd)
} else if (cmd == EVENT_TOGGLE_MUTE) {
if (master_mixer != nullptr)
master_mixer->toggle_mute();
if (other_mixer != nullptr)
other_mixer->set_mute(!master_mixer->is_muted());
if (other_mixer != nullptr) {
if (master_mixer != nullptr)
other_mixer->set_mute(!master_mixer->is_muted());
else
other_mixer->toggle_mute();
}
} else {
return false;
}