Commit 02f1f6c
committed
Prevent spurious update event on note creation
When a note is created, moveNoteToFront() is called. This triggers
an "update" event even when the note is already at the top of the
stack.
Make it so moveNoteToFront() is a no-op when the note is already at
the top.
Signed-off-by: Simon Ser <[email protected]>1 parent 1f31384 commit 02f1f6c
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| |||
0 commit comments