From d0fe2711b68b92cfc38a43f5e4495e4013a57720 Mon Sep 17 00:00:00 2001 From: wjian23 Date: Tue, 22 Oct 2024 23:08:13 +0800 Subject: [PATCH] fix watch multi builtin events not work --- CHANGELOG.md | 4 ++++ macros/src/symbol_process.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b87fa6c02..ff4d721dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,10 @@ Please only add new entries below the [Unreleased](#unreleased---releasedate) he - **core**: When merge multiple `MixBuiltin` widgets, there may be a premature dropping of the outer `MixBuiltin` before it should occur. (#639 @M-Adoo) - **core**: `watch!` does not notify the initial value. (#640 @M-Adoo) +- **core**: fix watch multi builtin events not work (#pr @wjian23) + +- **core**: fix widget layout when h_algin and v_align are embedded in each other (#pr @wjian23) + ### Breaking - **macros**: Using `@ $w { ... }` will no longer automatically wrap a `FatObj` for `w`. (#639 @M-Adoo) diff --git a/macros/src/symbol_process.rs b/macros/src/symbol_process.rs index 127c3f034..98f8b912a 100644 --- a/macros/src/symbol_process.rs +++ b/macros/src/symbol_process.rs @@ -557,7 +557,7 @@ impl DollarRefsCtx { } if let (Some(this), Some(other)) = (r.builtin.as_mut(), dollar_ref.builtin) { for e in other.run_before_clone { - if this.run_before_clone.iter().any(|e2| &e == e2) { + if this.run_before_clone.iter().any(|e2| &e != e2) { this.run_before_clone.push(e); } }