From bbc0cff3994b65371d2224c6322f04c2fac01556 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 26 Sep 2014 14:25:25 -0500 Subject: Connect to the value in accounts service and update the player if appropriate --- src/service.vala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/service.vala') diff --git a/src/service.vala b/src/service.vala index 059724a..8287b7f 100644 --- a/src/service.vala +++ b/src/service.vala @@ -50,7 +50,13 @@ public class IndicatorSound.Service: Object { /* If we're on the greeter, don't export */ if (GLib.Environment.get_user_name() != "lightdm") { this.accounts_service = new AccountsServiceUser(); - /* TODO: Watch for setting */ + + this.accounts_service.notify["showDataOnGreeter"].connect(() => { + this.export_to_accounts_service = this.accounts_service.showDataOnGreeter; + eventually_update_player_actions(); + }); + + this.export_to_accounts_service = this.accounts_service.showDataOnGreeter; } this.sync_preferred_players (); -- cgit v1.2.3