Commit 76a74c2
committed
fix: SnyggSelector crash on unknown selectors and copy-paste serializationId
SnyggSelector.from() used entries.first() which throws
NoSuchElementException on unrecognized selector strings from imported
theme files. Changed to firstOrNull() with NONE fallback so malformed
themes degrade gracefully instead of crashing the IME.
SnyggContentScaleValue.serializationId was "textAlign" (copy-pasted
from SnyggTextAlignValue). Corrected to "contentScale".1 parent 86c9885 commit 76a74c2
2 files changed
Lines changed: 2 additions & 2 deletions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | | - | |
| 545 | + | |
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
0 commit comments