aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src-tauri/src/core/config.rs
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-13 17:54:42 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-13 17:54:42 +0800
commit50f4725c657c6583452d9c85f9b934c3cf2a0f70 (patch)
tree8d8de216b134a04507d68dd2dc7516b8dbe433bd /src-tauri/src/core/config.rs
parentf7cabe5a0388518be50eb225500b7b4800109274 (diff)
downloadDropOut-50f4725c657c6583452d9c85f9b934c3cf2a0f70.tar.gz
DropOut-50f4725c657c6583452d9c85f9b934c3cf2a0f70.zip
chore(style): format code
Diffstat (limited to 'src-tauri/src/core/config.rs')
-rw-r--r--src-tauri/src/core/config.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/core/config.rs b/src-tauri/src/core/config.rs
index 5558786..47c5306 100644
--- a/src-tauri/src/core/config.rs
+++ b/src-tauri/src/core/config.rs
@@ -34,7 +34,7 @@ impl ConfigState {
pub fn new(app_handle: &AppHandle) -> Self {
let app_dir = app_handle.path().app_data_dir().unwrap();
let config_path = app_dir.join("config.json");
-
+
let config = if config_path.exists() {
let content = fs::read_to_string(&config_path).unwrap_or_default();
serde_json::from_str(&content).unwrap_or_default()