aboutsummaryrefslogtreecommitdiff
path: root/src/service.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/service.vala')
-rw-r--r--src/service.vala8
1 files changed, 7 insertions, 1 deletions
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 ();