Revision c636df1f trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs

b/trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs
232 232
				if (_monitors.TryGetValue(accountName, out monitor))
233 233
				{
234 234
					//If the account is active
235
					if (account.IsActive)
236
						//Start the monitor. It's OK to start an already started monitor,
237
						//it will just ignore the call                        
238
						StartMonitor(monitor).Wait();                        
239
					else
240
					{
241
						//If the account is inactive
242
						//Stop and remove the monitor
243
						RemoveMonitor(accountName);
244
					}
235
                    if (account.IsActive)
236
                    {
237
                        //The Api Key may have changed throuth the Preferences dialog
238
                        monitor.ApiKey = account.ApiKey;
239
						Debug.Assert(monitor.StatusNotification == this,"An existing monitor should already have a StatusNotification service object");
240
                        monitor.RootPath = account.RootPath;
241
                        //Start the monitor. It's OK to start an already started monitor,
242
                        //it will just ignore the call                        
243
                        StartMonitor(monitor).Wait();
244
                    }
245
                    else
246
                    {
247
                        //If the account is inactive
248
                        //Stop and remove the monitor
249
                        RemoveMonitor(accountName);
250
                    }
245 251
					return;
246 252
				}
247 253

  

Also available in: Unified diff