diff options
| author | sigoden <sigoden@gmail.com> | 2025-07-03 08:50:21 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-03 08:50:21 +0800 |
| commit | a833512c19f501f1bea84166e6e41b97274f530b (patch) | |
| tree | 73f4876d3123cc695f6bbfd094347bd519d4e31f /src/config | |
| parent | 65efb2100fa774a3c403ede5a4245bc724c81572 (diff) | |
| download | aichat-a833512c19f501f1bea84166e6e41b97274f530b.tar.gz | |
refactor: update deps and models.yaml (#1339)
Diffstat (limited to 'src/config')
| -rw-r--r-- | src/config/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs index b52debe..04ae4ef 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -1913,9 +1913,9 @@ impl Config { Some(theme) } else { let theme = if self.light_theme() { - bincode::deserialize_from(LIGHT_THEME).expect("Invalid builtin light theme") + decode_bin(LIGHT_THEME).context("Invalid builtin light theme")? } else { - bincode::deserialize_from(DARK_THEME).expect("Invalid builtin dark theme") + decode_bin(DARK_THEME).context("Invalid builtin dark theme")? }; Some(theme) } |
