Why bother pretending its not dirty
This commit is contained in:
parent
578f2ce504
commit
514ad74db3
@ -99,15 +99,15 @@ public class FlagWatcher {
|
||||
}
|
||||
value = valueByte;
|
||||
}
|
||||
boolean doD = watch.getDirtyState();
|
||||
boolean isDirty = watch.getDirtyState();
|
||||
watch = new WrappedWatchableObject(dataType, value);
|
||||
if (!doD)
|
||||
watch.setDirtyState(doD);
|
||||
if (!isDirty)
|
||||
watch.setDirtyState(false);
|
||||
} else {
|
||||
boolean doD = watch.getDirtyState();
|
||||
boolean isDirty = watch.getDirtyState();
|
||||
watch = new WrappedWatchableObject(dataType, watch.getValue());
|
||||
if (!doD)
|
||||
watch.setDirtyState(doD);
|
||||
if (!isDirty)
|
||||
watch.setDirtyState(false);
|
||||
}
|
||||
newList.add(watch);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user