Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8b72ea3f authored by Tom Cherry's avatar Tom Cherry
Browse files

DO NOT MERGE init: Fix parsing of multiple property triggers

Triggers of the form on property:a=b && property:b=c are only
triggered on the transition of a->b (given that b=c), but not on the
transition of b->c (given that a=b).

This commit allows both transitions to trigger the property as expected

Bug 23631258

Change-Id: I9f70b4cbf36f8a99d10c37ad049ae8ceb378d610
parent 8bc53c12
Loading
Loading
Loading
Loading
+23 −24
Original line number Diff line number Diff line
@@ -586,7 +586,7 @@ void queue_property_triggers(const char *name, const char *value)
                        match = true;
                        continue;
                    }
                } else {
                }
                const char* equals = strchr(test, '=');
                if (equals) {
                    char prop_name[PROP_NAME_MAX + 1];
@@ -606,7 +606,6 @@ void queue_property_triggers(const char *name, const char *value)
                    }
                }
            }
             }
            match = false;
            break;
        }