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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user