Skip to content

Commit

Permalink
fix(audio-applet): Render input volume level instead of output.
Browse files Browse the repository at this point in the history
  • Loading branch information
l-const authored and wash2 committed Oct 14, 2024
1 parent 652ea5b commit 7b005f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmic-applet-audio/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl Audio {
fn update_input(&mut self, input: Option<DeviceInfo>) {
self.current_input = input;

if let Some(device) = self.current_output.as_ref() {
if let Some(device) = self.current_input.as_ref() {
self.input_volume = volume_to_percent(device.volume.avg());
self.input_volume_text = format!("{}%", self.input_volume.round());
}
Expand Down

0 comments on commit 7b005f9

Please sign in to comment.