Change to Polling agent
[pithos-ms-client] / trunk / Pithos.Client.WPF / Shell / ShellViewModel.cs
index 7966319..7700a81 100644 (file)
@@ -503,6 +503,7 @@ namespace Pithos.Client.WPF {
                public void ShowPreferences(string currentTab)
                {
                        //Settings.Reload();
+            
                    var preferences = new PreferencesViewModel(_windowManager, _events, this, Settings,currentTab);
                    _windowManager.ShowDialog(preferences);
                        
@@ -1023,7 +1024,8 @@ namespace Pithos.Client.WPF {
                        var account = Accounts.FirstOrDefault(acc => acc.AccountKey == message.Account.AccountKey);
                        if (account != null)
                        {
-                           this._pollAgent.SetSelectivePaths(account, message.Added, message.Removed);
+                           _pollAgent.SetSelectivePaths(account, message.Added, message.Removed);
+                    _pollAgent.SynchNow();
                        }
                    });