Ver código fonte

Fix to enabled status of editor in OvertimeIntervalGrid

Kenric Nugteren 1 mês atrás
pai
commit
5ced63fb1b
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      prs.desktop/Grids/OvertimeIntervalGrid.cs

+ 1 - 1
prs.desktop/Grids/OvertimeIntervalGrid.cs

@@ -22,7 +22,7 @@ namespace PRSDesktop.Grids
             base.DoReconfigureEditors(grid, items);
 
             var intervalEditor = grid.FindEditor(nameof(OvertimeInterval.Interval));
-            intervalEditor?.SetEnabled(!items.Any(x => x.IntervalType == OvertimeIntervalType.RemainingTime));
+            intervalEditor?.SetEnabled(intervalEditor.IsEnabled && !items.Any(x => x.IntervalType == OvertimeIntervalType.RemainingTime));
         }
 
         // EditorPage BeforeSave