Commit b455545
CASTELLANA-SAHIR Amel
Fix modal closing and history loss on tune creation
The storage watcher in History would trigger loadHistoricState() after
every saveCurrentState() call, creating a feedback loop that could
replace the entire state object. This caused two issues:
- Pattern editor dialog closing unexpectedly during editing
- Previously created custom tunes disappearing from the current state
Add a guard to skip loading when the storage key matches the current
key, which was just saved by saveCurrentState().1 parent e5df725 commit b455545
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
0 commit comments