feat(settings): embed version changelog in About page

This commit is contained in:
Freedom authored and GitHub committed 2026-07-14 12:54:07 +08:00
1 parent e9e59113a3
commit aff9c8515d
20 files changed
+546 -1

No files matched your search

+6
View File
@@ -118,6 +118,12 @@ pub async fn check_for_updates(locale: Option<String>) -> Result<UpdateInfo, Str
Ok(info)
}
#[tauri::command]
pub async fn fetch_changelog(lang: Option<String>) -> Result<dbx_core::changelog::ChangelogData, String> {
let lang = lang.unwrap_or_else(|| "en".to_string());
dbx_core::changelog::fetch_changelog(&lang).await
}
#[tauri::command]
pub async fn get_system_proxy_url() -> Option<String> {
tauri::async_runtime::spawn_blocking(dbx_core::update::system_proxy_url).await.ok().flatten()