Revision eb81e47d trunk/Pithos.Client.WPF/Preferences/PreferencesViewModel.cs

b/trunk/Pithos.Client.WPF/Preferences/PreferencesViewModel.cs
218 218
        
219 219
        public bool CanSelectiveSyncFolders
220 220
        {
221
            get { return CurrentAccount != null; }
221
            get { return CurrentAccount != null && CurrentAccount.SelectiveSyncEnabled; }
222 222
        }
223 223

  
224 224
        public void SelectiveSyncFolders()
......
619 619
            set
620 620
            {
621 621
                _currentAccount = value;
622
                NotifyOfPropertyChange(()=>CurrentAccount);
622

  
623
                _currentAccount.PropertyChanged += (o, e) => NotifyOfPropertyChange(() => CanSelectiveSyncFolders);
624

  
625
                NotifyOfPropertyChange(() => CurrentAccount);
623 626
                NotifyOfPropertyChange(() => CanRemoveAccount);
624 627
                NotifyOfPropertyChange(() => CanSelectiveSyncFolders);
625 628
                NotifyOfPropertyChange(() => CanMoveAccountFolder);

Also available in: Unified diff