lib/volay/widget/volume_control.rb in volay-0.7.0 vs lib/volay/widget/volume_control.rb in volay-1.0.0
- old
+ new
@@ -24,12 +24,13 @@
end
##
# When mute toggle image is clicked
#
- def on_toggle_mute_toggled
+ def on_toggle_mute_toggled(widget)
Thread.new do
- @app.mixer.toggle unless widget.active? && @app.mixer.muted?
+ @app.mixer.toggle unless (widget.active? && @app.mixer.muted?) ||
+ (!widget.active? && !@app.mixer.muted?)
@app.utils.update_status_icon
end
end
end
end