mirror of https://github.com/polybar/polybar.git
fix(volume): Handle non synced mute
This commit is contained in:
parent
b210e5a01d
commit
331c94c248
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue