pass _appOptions to load method

This commit is contained in:
Kyle Spearrin 2019-06-01 22:44:15 -04:00
parent cab2b261b5
commit 312b6c2d44

View file

@ -112,12 +112,12 @@ namespace Bit.App.Pages
base.OnAppearing(); base.OnAppearing();
await LoadOnAppearedAsync(_scrollView, true, async () => await LoadOnAppearedAsync(_scrollView, true, async () =>
{ {
var success = await _vm.LoadAsync(); var success = await _vm.LoadAsync(_appOptions);
if(!success) if(!success)
{ {
await Navigation.PopModalAsync(); await Navigation.PopModalAsync();
} }
else if(!_vm.EditMode) else if(!_vm.EditMode && string.IsNullOrWhiteSpace(_vm.Cipher.Name))
{ {
RequestFocus(_nameEntry); RequestFocus(_nameEntry);
} }