fix(updater): remove single&double quotes escaping in updater dialog … (#4047)

This commit is contained in:
Amr Bashir 2022-05-04 15:43:49 +02:00 committed by GitHub
parent 615f48dee0
commit 0180dcc812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -0,0 +1,5 @@
---
"tauri": patch
---
Fix updater dialog removing single and double quotes from the release notes

View File

@ -848,8 +848,6 @@ async fn prompt_for_install<R: Runtime>(
body: &str,
pubkey: String,
) -> Result<()> {
// remove single & double quote
let escaped_body = body.replace(&['\"', '\''][..], "");
let windows = update.app.windows();
let parent_window = windows.values().next();
@ -865,7 +863,7 @@ Would you like to install it now?
Release Notes:
{}"#,
app_name, update.version, update.current_version, escaped_body,
app_name, update.version, update.current_version, body,
),
);