Revision eb81e47d trunk/Pithos.Client.WPF/SelectiveSynch/SelectiveSynchViewModel.cs

b/trunk/Pithos.Client.WPF/SelectiveSynch/SelectiveSynchViewModel.cs
94 94
            //_monitor = monitor;
95 95
            _events = events;
96 96
            _apiKey = apiKey;
97
            IsEnabled = account.SelectiveSyncEnabled;
97
            //IsEnabled = account.SelectiveSyncEnabled;
98 98
            TaskEx.Run(LoadRootNode);
99 99
        }
100 100

  
......
269 269
                          where record.Removed && record.Uri != null
270 270
                         select record.Uri).ToArray();
271 271
            //TODO: Include Uris for the containers as well
272
            _events.Publish(new SelectiveSynchChanges{Enabled=IsEnabled, Account=Account,Uris=uris,Added=added,Removed=removed});
272
            _events.Publish(new SelectiveSynchChanges{Enabled=true, Account=Account,Uris=uris,Added=added,Removed=removed});
273 273
            
274 274

  
275 275
            
......
277 277
            TryClose(true);
278 278
        }
279 279

  
280
/*
280 281
        private bool _isEnabled;
281 282
        public bool IsEnabled
282 283
        {
......
287 288
                NotifyOfPropertyChange(()=>IsEnabled);
288 289
            }
289 290
        }
291
*/
290 292

  
291 293
        private void SaveSettings(IEnumerable<Uri> uris)
292 294
        {
293 295
            var selections = uris.Select(uri => uri.ToString()).ToArray();
294
            Account.SelectiveSyncEnabled = IsEnabled;
296
            //Account.SelectiveSyncEnabled = IsEnabled;
295 297
            Account.SelectiveFolders.Clear();
296 298
            Account.SelectiveFolders.AddRange(selections);
297 299
            Settings.Default.Save();            

Also available in: Unified diff