MailLogWindow: Fix crash when opening
All checks were successful
Test / Run tests (push) Successful in 2m52s

This commit is contained in:
2025-01-19 17:00:31 +01:00
parent 0b8a1b321f
commit 5d017cc8ea

View File

@ -19,6 +19,7 @@ namespace Elwig.Windows {
}
private async void TimeSpanInput_SelectionChanged(object sender, RoutedEventArgs evt) {
if (!IsLoaded) return;
DateTime? fromDate = DateTime.Now;
if (TimeSpanInput.SelectedIndex == 0) {
fromDate = fromDate.Value.AddDays(-7);
@ -50,6 +51,7 @@ namespace Elwig.Windows {
}
private void ApplyFilters() {
if (!IsLoaded) return;
var filters = FilterInput.Text.Split(' ');
IEnumerable<Row> data = Data;
switch (TypeInput.SelectedIndex) {