fix: only set origin and trigger change event if the value actually changed

This commit is contained in:
Randall Morey committed 2021-01-22 11:34:22 -05:00
1 parent 3c19f72273
commit 60f0a93e09
1 file changed
+4 -2
+4 -2
View File
@@ -17,8 +17,10 @@ class RuntimeSettings {
*/
get origin() { return this.#origin; }
set origin(origin) {
this.#origin = origin;
this.triggerOriginChanged();
if (this.#origin !== origin) {
this.#origin = origin;
this.triggerOriginChanged();
}
}
/**