aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcharles kerr <charlesk@canonical.com>2015-12-28 16:32:15 -0600
committercharles kerr <charlesk@canonical.com>2015-12-28 16:32:15 -0600
commit18a6fca75d2ccd489a26b6fd40dbb69ce8f5008f (patch)
tree87841685e558579f777d7661d1b27b310d682d76 /src
parent9812d074e828fdba8113c7af173703287f20e0c9 (diff)
downloadayatana-indicator-sound-18a6fca75d2ccd489a26b6fd40dbb69ce8f5008f.tar.gz
ayatana-indicator-sound-18a6fca75d2ccd489a26b6fd40dbb69ce8f5008f.tar.bz2
ayatana-indicator-sound-18a6fca75d2ccd489a26b6fd40dbb69ce8f5008f.zip
in volume-warning, show the dialog before setting the high-volume prop
That way warning's 'active' property will be true by the time Service gets around to deciding whether or not to show an info dialog.
Diffstat (limited to 'src')
-rw-r--r--src/volume-warning.vala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/volume-warning.vala b/src/volume-warning.vala
index bfa16c3..39326f5 100644
--- a/src/volume-warning.vala
+++ b/src/volume-warning.vala
@@ -309,9 +309,9 @@ public class VolumeWarning : Object
GLib.message("so the new high_volume is %d, was %d", (int)new_high_volume, (int)high_volume);
if (high_volume != new_high_volume) {
debug("changing high_volume from %d to %d", (int)high_volume, (int)new_high_volume);
- high_volume = new_high_volume;
- if (high_volume && !active)
+ if (new_high_volume && !active)
show();
+ high_volume = new_high_volume;
}
}