Revision 6a7b8909 trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs

b/trunk/Pithos.Client.WPF/Shell/ShellViewModel.cs
316 316
				PithosMonitor monitor;
317 317
				var accountName = account.AccountName;
318 318

  
319
			    MigrateFolders(account);
320

  
319 321
				if (Monitors.TryGetValue(account.AccountKey, out monitor))
320 322
				{
321 323
					//If the account is active
......
365 367
			});
366 368
		}
367 369

  
370
	    private void MigrateFolders(AccountSettings account)
371
	    {
372
	        var oldOthersFolder=Path.Combine(account.RootPath, FolderConstants.OldOthersFolder);
373
	        var newOthersFolder = Path.Combine(account.RootPath, FolderConstants.OthersFolder);
374
	        var oldFolder = new DirectoryInfo(oldOthersFolder);
375
	        var newFolder = new DirectoryInfo(newOthersFolder);
376

  
377
            if (oldFolder.Exists && !newFolder.Exists)
378
            {
379
                oldFolder.MoveTo(newOthersFolder);
380
            }
381
	    }
382

  
368 383

  
369
		protected override void OnViewLoaded(object view)
384
	    protected override void OnViewLoaded(object view)
370 385
		{
371 386
			UpdateStatus();
372 387
			var window = (Window)view;            

Also available in: Unified diff