Take the flag rather than the reason where only the flag is read
- Co-Authored-By
- Claude Opus 5 (1M context) <noreply@anthropic.com>
- Claude-Session
- https://claude.ai/code/session_0136sbU8F6i9WrcvA3wn4Lgk
1 file changed,
+1 insertion,
-1 deletion
| 652 |
652 |
|
// is what a stylesheet mutes; the text is there either way, which is
|
| 653 |
653 |
|
// the half that matters — the finding was a greyed control with its
|
| 654 |
654 |
|
// explanation behind a hover.
|
| 655 |
|
- |
if let Some(reason) = opt.unavailable {
|
|
655 |
+ |
if opt.unavailable.is_some() {
|
| 656 |
656 |
|
out.push_str(" disabled");
|
| 657 |
657 |
|
}
|
| 658 |
658 |
|
out.push_str("><span>");
|