Skip to content

Commit 465cefa

Browse files
author
Vincent Wilms
committed
Do not sync begin and end date/times anylonger in the UI because it is nearly impossible to make this work reliably for all browsers
1 parent 0294709 commit 465cefa

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Nexus.UI/ViewModels/SettingsViewModel.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ public DateTime Begin
4545
{
4646
_appState.ExportParameters = _appState.ExportParameters with { Begin = DateTime.SpecifyKind(value, DateTimeKind.Utc) };
4747

48-
if (_appState.ExportParameters.Begin >= _appState.ExportParameters.End)
49-
_appState.ExportParameters = _appState.ExportParameters with { End = _appState.ExportParameters.Begin };
50-
5148
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Begin)));
5249
CanExportChanged();
5350
CanVisualizeChanged();
@@ -64,9 +61,6 @@ public DateTime End
6461
{
6562
_appState.ExportParameters = _appState.ExportParameters with { End = DateTime.SpecifyKind(value, DateTimeKind.Utc) };
6663

67-
if (_appState.ExportParameters.End <= _appState.ExportParameters.Begin)
68-
_appState.ExportParameters = _appState.ExportParameters with { Begin = _appState.ExportParameters.End };
69-
7064
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(End)));
7165
CanExportChanged();
7266
CanVisualizeChanged();

0 commit comments

Comments
 (0)