Skip to content
Snippets Groups Projects

Partly resolves "Implement state copy in AST"

Merged Manuel Krombholz requested to merge 30-implement-state-copy-in-ast into dev
All threads resolved!
2 files
+ 5
4
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -137,9 +137,10 @@ aspect ItemHandling {
//--- setStateFromBoolean ---
public abstract void Item.setStateFromBoolean(boolean value);
public void ColorItem.setStateFromBoolean(boolean value) {
if (getState().getBrightness()==0) {
setBrightness(value ? 100 : 0);
if (getState()!=null && getState().getBrightness()!=0 && value) {
return;
}
setBrightness(value ? 100 : 0);
}
public void DateTimeItem.setStateFromBoolean(boolean value) {
// there is no good way here
Loading