refactor: cleanup

This commit is contained in:
zhom
2026-04-16 01:55:32 +04:00
parent ba796f1cea
commit e293c36b97
4 changed files with 79 additions and 11 deletions
+12 -1
View File
@@ -2344,7 +2344,18 @@ impl SyncEngine {
// Verify critical files after download
let os_crypt_key_path = profile_dir.join("profile").join("os_crypt_key");
let cookies_path = profile_dir.join("profile").join("Default").join("Cookies");
let cookies_path = {
let network = profile_dir
.join("profile")
.join("Default")
.join("Network")
.join("Cookies");
if network.exists() {
network
} else {
profile_dir.join("profile").join("Default").join("Cookies")
}
};
if os_crypt_key_path.exists() {
let key_data = fs::read(&os_crypt_key_path).unwrap_or_default();
log::info!(