diff --git a/src/App/Pages/Generator/GeneratorHistoryPageViewModel.cs b/src/App/Pages/Generator/GeneratorHistoryPageViewModel.cs index ad7f59195..b3c88acb2 100644 --- a/src/App/Pages/Generator/GeneratorHistoryPageViewModel.cs +++ b/src/App/Pages/Generator/GeneratorHistoryPageViewModel.cs @@ -45,6 +45,7 @@ namespace Bit.App.Pages public async Task ClearAsync() { History.ResetWithRange(new List()); + ShowNoData = true; await _passwordGenerationService.ClearAsync(); } diff --git a/src/App/Pages/Generator/GeneratorPage.xaml b/src/App/Pages/Generator/GeneratorPage.xaml index 63faa575b..72e64c08d 100644 --- a/src/App/Pages/Generator/GeneratorPage.xaml +++ b/src/App/Pages/Generator/GeneratorPage.xaml @@ -105,7 +105,7 @@ VerticalOptions="CenterAndExpand" HorizontalTextAlignment="End" /> - { - await Task.Delay(500); - if(DateTime.UtcNow - page.LastLengthSliderChange < TimeSpan.FromMilliseconds(450)) - { - return; - } - else - { - previousCts?.Cancel(); - } - cts.Token.ThrowIfCancellationRequested(); - await _passwordGenerationService.SaveOptionsAsync(_options); - cts.Token.ThrowIfCancellationRequested(); - await _passwordGenerationService.AddHistoryAsync(Password, cts.Token); - }, cts.Token); - _sliderCancellationTokenSource = cts; } public async Task CopyAsync()