Skip to content

Commit

Permalink
media-keys: Don't show a level when muted
Browse files Browse the repository at this point in the history
As discussed in:
https://bugzilla.gnome.org/show_bug.cgi?id=644537#c4

Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn>
  • Loading branch information
zhangxianwei8 committed Nov 20, 2018
1 parent d01bc10 commit 62299ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/media-keys/msd-media-keys-manager.c
Expand Up @@ -636,6 +636,9 @@ update_dialog (MsdMediaKeysManager *manager,
gboolean muted,
gboolean sound_changed)
{
if (muted)
volume = 0.0;

dialog_init (manager);

msd_media_keys_window_set_volume_muted (MSD_MEDIA_KEYS_WINDOW (manager->priv->dialog),
Expand Down

0 comments on commit 62299ac

Please sign in to comment.