1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 07:43:37 +00:00

save length and history when value done changing

This commit is contained in:
Kyle Spearrin
2019-05-31 09:09:32 -04:00
parent ac6f3a6bb6
commit 8df940447d
5 changed files with 55 additions and 5 deletions

View File

@@ -23,6 +23,8 @@ namespace Bit.App.Pages
}
}
public DateTime LastLengthSliderChange { get; set; } = DateTime.MinValue;
public async Task InitAsync()
{
await _vm.InitAsync();
@@ -57,5 +59,13 @@ namespace Bit.App.Pages
var page = new GeneratorHistoryPage();
await Navigation.PushModalAsync(new NavigationPage(page));
}
private void LengthSlider_ValueChanged(object sender, ValueChangedEventArgs e)
{
if(e.NewValue != e.OldValue)
{
LastLengthSliderChange = DateTime.UtcNow;
}
}
}
}