Skip to content

Commit

Permalink
Convert update changelog to markdown
Browse files Browse the repository at this point in the history
Looks better without HTML tags everywhere.
  • Loading branch information
tangalbert919 committed Dec 17, 2024
1 parent 73432e1 commit 8caf32a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt flet
pip install -r requirements.txt flet markdownify
- name: Flet build windows
run: |
Expand Down
5 changes: 3 additions & 2 deletions gui.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import flet as ft
import probe
from markdownify import markdownify as md

def main(page: ft.Page):
prober = probe.Prober()
Expand All @@ -11,7 +12,7 @@ def start_probe(e):
update_info.value = "An update is available!"
downloadBtn.disabled = False
update_dlg_btn.disabled = False
update_dlg.content = ft.Text(prober.get_update_desc())
update_dlg.content = ft.Markdown(md(prober.get_update_desc()))
else:
update_info.value = "No update is available."
downloadBtn.disabled = True
Expand All @@ -30,7 +31,7 @@ def page_resized(e):
page.on_resized = page_resized

update_dlg = ft.AlertDialog(
title=ft.Text("Update changelog"),
title=ft.Text("Update changelog", text_align=ft.TextAlign.CENTER),
on_dismiss=lambda e: print("Dialog dismissed."),
)

Expand Down

0 comments on commit 8caf32a

Please sign in to comment.