diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-10-07 14:22:09 +0100 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-10-07 14:22:09 +0100 |
commit | d966a9ff70a81fae4508fed79ce207424df652f1 (patch) | |
tree | 0f0651aa2ef46f5325c5abf949e2c9a01d717035 | |
parent | 351ec423689a0841a3ab9cc6fe03f3dcef5028bc (diff) | |
download | ayatana-indicator-sound-d966a9ff70a81fae4508fed79ce207424df652f1.tar.gz ayatana-indicator-sound-d966a9ff70a81fae4508fed79ce207424df652f1.tar.bz2 ayatana-indicator-sound-d966a9ff70a81fae4508fed79ce207424df652f1.zip |
tidied silly logic
-rw-r--r-- | src/mpris2-controller.vala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mpris2-controller.vala b/src/mpris2-controller.vala index 54e1868..29dd4cf 100644 --- a/src/mpris2-controller.vala +++ b/src/mpris2-controller.vala @@ -135,10 +135,7 @@ public class Mpris2Controller : GLib.Object return changed_updates; } - private TransportMenuitem.state determine_play_state(string status){ - if(status == null) - return TransportMenuitem.state.PAUSED; - + private TransportMenuitem.state determine_play_state(string status){ if(status != null && status == "Playing"){ return TransportMenuitem.state.PLAYING; } |