Commit 815cf4c
Fix: filter empty strings in sync auth status check
disconnect_cloud_sync sets sync_gist_id to "" rather than deleting
it. Since get_setting returns Some("") for empty values, the
is_authenticated check (token.is_some() && gist_id.is_some())
incorrectly returns true after disconnect.
Add .filter(|s| !s.is_empty()) to all get_setting calls in
get_sync_auth_status, matching the pattern already used in
get_sync_status.
Relates to #195
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 14c9600 commit 815cf4c
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
0 commit comments