Skip to content

Commit

Permalink
Fix follow links
Browse files Browse the repository at this point in the history
  • Loading branch information
tsterbak committed May 7, 2023
1 parent 5dee245 commit d1e445f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion openandroidinstaller/styles.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ class Markdown(ft.Markdown):
"""Markdown element to replace the markdown element from flet but is selectable."""

def __init__(self, *args, **kwargs):
super().__init__(selectable=True, auto_follow_links=True, *args, **kwargs)
super().__init__(
selectable=True,
on_tap_link=lambda e: self.page.launch_url(e.data),
*args,
**kwargs
)
1 change: 0 additions & 1 deletion openandroidinstaller/views/select_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def init_visuals(
replacing the firmware of the device with a completely custom ROM.
OpenAndroidInstaller works with the [TWRP recovery project](https://twrp.me/about).""",
on_tap_link=lambda e: self.page.launch_url(e.data),
),
actions=[
TextButton("Close", on_click=self.close_close_explain_images_dlg),
Expand Down

0 comments on commit d1e445f

Please sign in to comment.