mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-04 08:50:18 +01:00
copy to remove no folder from list
This commit is contained in:
parent
60f81c5cba
commit
6838b32304
@ -23,7 +23,7 @@ namespace Bit.App.Pages
|
||||
PageTitle = AppResources.Folders;
|
||||
Folders = new ExtendedObservableCollection<FolderView>();
|
||||
}
|
||||
|
||||
|
||||
public ExtendedObservableCollection<FolderView> Folders { get; set; }
|
||||
|
||||
public bool ShowNoData
|
||||
@ -38,7 +38,7 @@ namespace Bit.App.Pages
|
||||
// Remove "No Folder"
|
||||
if(folders?.Any() ?? false)
|
||||
{
|
||||
folders.Remove(folders.Last());
|
||||
folders = folders.GetRange(0, folders.Count - 1);
|
||||
}
|
||||
Folders.ResetWithRange(folders ?? new List<FolderView>());
|
||||
ShowNoData = Folders.Count == 0;
|
||||
|
Loading…
Reference in New Issue
Block a user