Skip to content

Commit

Permalink
audio.py: Stream: add rounding volume
Browse files Browse the repository at this point in the history
  • Loading branch information
linkfrg committed Jul 31, 2024
1 parent e5a622f commit 6c7b8ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ignis/services/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def is_muted(self, value: bool) -> None:

@GObject.Property
def volume(self) -> float:
return self._stream.get_volume() / self._control.get_vol_max_norm() * 100
return round(self._stream.get_volume() / self._control.get_vol_max_norm() * 100)

@volume.setter
def volume(self, value: float):
Expand Down

0 comments on commit 6c7b8ee

Please sign in to comment.