From 278fd3f15c4ea1fcfe68bce64469f333f1678fbe Mon Sep 17 00:00:00 2001 From: guinux Date: Sat, 7 Mar 2015 11:22:33 +0100 Subject: [PATCH] fix pamac-tray --- src/tray.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tray.vala b/src/tray.vala index e8c1692..a68115a 100644 --- a/src/tray.vala +++ b/src/tray.vala @@ -28,7 +28,7 @@ namespace Pamac { [DBus (name = "org.manjaro.pamac")] public interface Daemon : Object { public abstract void start_refresh (int force, bool emit_signal) throws IOError; - public abstract async Updates get_updates () throws IOError; + public abstract async Updates get_updates (bool enable_aur) throws IOError; [DBus (no_reply = true)] public abstract void quit () throws IOError; } @@ -125,7 +125,8 @@ namespace Pamac { } void check_updates () { - daemon.get_updates.begin ((obj, res) => { + var pamac_config = new Pamac.Config ("/etc/pamac.conf"); + daemon.get_updates.begin (pamac_config.enable_aur, (obj, res) => { var updates = Updates (); try { updates = daemon.get_updates.end (res);