1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 18:43:43 +00:00

crash fixes

This commit is contained in:
Kyle Spearrin
2019-05-28 22:57:59 -04:00
parent 6218c65ec6
commit 437a60a967
2 changed files with 8 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ namespace Bit.App.Pages
public class GroupingsPageViewModel : BaseViewModel
{
private bool _refreshing;
private bool _doingLoad;
private bool _loading;
private bool _loaded;
private bool _showAddCipherButton;
@@ -107,6 +108,11 @@ namespace Bit.App.Pages
public async Task LoadAsync()
{
if(_doingLoad)
{
return;
}
_doingLoad = true;
ShowNoData = false;
Loading = true;
ShowList = false;
@@ -190,6 +196,7 @@ namespace Bit.App.Pages
}
finally
{
_doingLoad = false;
ShowNoData = !groupedItems.Any();
ShowList = !ShowNoData;
Loaded = true;