MailLogWindow: Fix crash when opening
All checks were successful
Test / Run tests (push) Successful in 2m52s
All checks were successful
Test / Run tests (push) Successful in 2m52s
This commit is contained in:
@ -19,6 +19,7 @@ namespace Elwig.Windows {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async void TimeSpanInput_SelectionChanged(object sender, RoutedEventArgs evt) {
|
private async void TimeSpanInput_SelectionChanged(object sender, RoutedEventArgs evt) {
|
||||||
|
if (!IsLoaded) return;
|
||||||
DateTime? fromDate = DateTime.Now;
|
DateTime? fromDate = DateTime.Now;
|
||||||
if (TimeSpanInput.SelectedIndex == 0) {
|
if (TimeSpanInput.SelectedIndex == 0) {
|
||||||
fromDate = fromDate.Value.AddDays(-7);
|
fromDate = fromDate.Value.AddDays(-7);
|
||||||
@ -50,6 +51,7 @@ namespace Elwig.Windows {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void ApplyFilters() {
|
private void ApplyFilters() {
|
||||||
|
if (!IsLoaded) return;
|
||||||
var filters = FilterInput.Text.Split(' ');
|
var filters = FilterInput.Text.Split(' ');
|
||||||
IEnumerable<Row> data = Data;
|
IEnumerable<Row> data = Data;
|
||||||
switch (TypeInput.SelectedIndex) {
|
switch (TypeInput.SelectedIndex) {
|
||||||
|
Reference in New Issue
Block a user