Revision 2e3aee00 trunk/Pithos.Client.WPF/Preferences/PreferencesViewModel.cs

b/trunk/Pithos.Client.WPF/Preferences/PreferencesViewModel.cs
47 47
using System.ComponentModel.Composition;
48 48
using System.IO;
49 49
using System.Net;
50
using System.Threading.Tasks;
50 51
using System.Windows;
51 52
using System.Windows.Forms;
52 53
using Caliburn.Micro;
......
193 194
                
194 195
            }
195 196
        }
197

  
198
        public async Task RefreshApiKey()
199
        {            
200
            await Shell.TryAuthorize(CurrentAccount.AccountName, 3);
201
            NotifyOfPropertyChange(()=>CurrentAccount);
202
        }
196 203
    
197 204
        public void SaveChanges()
198 205
        {

Also available in: Unified diff