summaryrefslogtreecommitdiffstats
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2025-07-03 08:50:21 +0800
committerGitHub <noreply@github.com>2025-07-03 08:50:21 +0800
commita833512c19f501f1bea84166e6e41b97274f530b (patch)
tree73f4876d3123cc695f6bbfd094347bd519d4e31f /src/config/mod.rs
parent65efb2100fa774a3c403ede5a4245bc724c81572 (diff)
downloadaichat-a833512c19f501f1bea84166e6e41b97274f530b.tar.gz
refactor: update deps and models.yaml (#1339)
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs4
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)
}