Commit 35446bb
Fix Show() to correctly distinguish nil vs empty enabled providers
The Show() method was using len(enabledProviders) == 0 to check for
the "all enabled" case, but this matches both nil and empty slices.
According to the Settings design:
- nil means "all enabled" (default/unset)
- empty slice means "all disabled"
Changed to enabledProviders == nil to correctly distinguish these cases.
This prevents the dialog from re-enabling all providers when the user
has explicitly disabled everything.
Fixes the last remaining issue identified in PR review.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 65815a5 commit 35446bb
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
| 111 | + | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
0 commit comments