From a2bedaab8a7aaf7671a2c368c9596d286156ad55 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 6 Jun 2019 16:18:44 -0400 Subject: [PATCH] try 1s delay on search to stop crashing --- src/App/Pages/Vault/CiphersPage.xaml.cs | 2 +- src/App/Pages/Vault/CiphersPageViewModel.cs | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/App/Pages/Vault/CiphersPage.xaml.cs b/src/App/Pages/Vault/CiphersPage.xaml.cs index 14f0eb61e..e742ddd34 100644 --- a/src/App/Pages/Vault/CiphersPage.xaml.cs +++ b/src/App/Pages/Vault/CiphersPage.xaml.cs @@ -63,7 +63,7 @@ namespace Bit.App.Pages { return; } - _vm.Search(e.NewTextValue, 300); + _vm.Search(e.NewTextValue, 1000); } private void SearchBar_SearchButtonPressed(object sender, EventArgs e) diff --git a/src/App/Pages/Vault/CiphersPageViewModel.cs b/src/App/Pages/Vault/CiphersPageViewModel.cs index bf33e7d17..d144a2305 100644 --- a/src/App/Pages/Vault/CiphersPageViewModel.cs +++ b/src/App/Pages/Vault/CiphersPageViewModel.cs @@ -22,7 +22,6 @@ namespace Bit.App.Pages private readonly IDeviceActionService _deviceActionService; private CancellationTokenSource _searchCancellationTokenSource; - private string _searchText; private bool _showNoData; private bool _showList; @@ -42,12 +41,6 @@ namespace Bit.App.Pages public Func Filter { get; set; } public string AutofillUrl { get; set; } - public string SearchText - { - get => _searchText; - set => SetProperty(ref _searchText, value); - } - public bool ShowNoData { get => _showNoData;