Revision 74d78c90 trunk/Pithos.Client.WPF/Preferences/PreferencesViewModel.cs
b/trunk/Pithos.Client.WPF/Preferences/PreferencesViewModel.cs | ||
---|---|---|
237 | 237 |
var newAccount = new AccountSettings |
238 | 238 |
{ |
239 | 239 |
AccountName = wizard.AccountName, |
240 |
ServerUrl=new Uri(wizard.CurrentServer),
|
|
240 |
ServerUrl=wizard.CurrentServer,
|
|
241 | 241 |
ApiKey=wizard.Token, |
242 | 242 |
RootPath=wizard.AccountPath, |
243 |
IsActive=wizard.IsAccountActive, |
|
244 |
UsePithos=true |
|
243 |
IsActive=wizard.IsAccountActive |
|
245 | 244 |
}; |
246 | 245 |
Settings.Accounts.Add(newAccount); |
247 | 246 |
(Accounts as IProducerConsumerCollection<AccountSettings>).TryAdd(newAccount); |
... | ... | |
262 | 261 |
{ |
263 | 262 |
account=new AccountSettings{ |
264 | 263 |
AccountName=credentials.UserName, |
265 |
ApiKey=credentials.Password, |
|
266 |
UsePithos=true |
|
264 |
ApiKey=credentials.Password |
|
267 | 265 |
}; |
268 | 266 |
Settings.Accounts.Add(account); |
269 | 267 |
(Accounts as IProducerConsumerCollection<AccountSettings>).TryAdd(account); |
Also available in: Unified diff