Skip to content

Commit

Permalink
Fix update dialog with markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
jfeil committed Dec 31, 2021
1 parent 15faa9b commit 532217b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main_application.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def display_update_dialog():
msg_box.setStandardButtons(QMessageBox.Ok)
else:
msg_box.setText(f'<h1>Update <a href="{result[2]}">{result[0]}</a> verfügbar!</h1>'
f'{markdown2.markdown("#" + result[1])}<a href="{result[3]}">Neueste Version jetzt herunterladen</a>')
f'{markdown2.markdown(result[1]).replace("h3>", "h4>").replace("h2>", "h3>").replace("h1>", "h2>")}<a href="{result[3]}">Neueste Version jetzt herunterladen</a>')
msg_box.setInformativeText(f'')
msg_box.setTextFormat(Qt.RichText)
msg_box.setTextInteractionFlags(Qt.TextBrowserInteraction)
Expand Down

0 comments on commit 532217b

Please sign in to comment.