diff options
author | Zhang Xianwei <[email protected]> | 2018-11-20 18:46:36 +0800 |
---|---|---|
committer | Zhang Xianwei <[email protected]> | 2018-11-20 18:46:36 +0800 |
commit | 62299ac839240f9816645523fb2b31bb7977864c (patch) | |
tree | a247b80c9aae8387e51f753a5752e1513c37e913 | |
parent | d01bc101ff9baef562b93e5f24caaef00f963e14 (diff) | |
download | mate-settings-daemon-62299ac839240f9816645523fb2b31bb7977864c.tar.bz2 mate-settings-daemon-62299ac839240f9816645523fb2b31bb7977864c.tar.xz |
media-keys: Don't show a level when muted
As discussed in:
https://bugzilla.gnome.org/show_bug.cgi?id=644537#c4
Signed-off-by: Zhang Xianwei <[email protected]>
-rw-r--r-- | plugins/media-keys/msd-media-keys-manager.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/media-keys/msd-media-keys-manager.c b/plugins/media-keys/msd-media-keys-manager.c index 4fe1db1..ab31a9d 100644 --- a/plugins/media-keys/msd-media-keys-manager.c +++ b/plugins/media-keys/msd-media-keys-manager.c @@ -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), |