Skip to content

Commit d1e445f

Browse files
committed
Fix follow links
1 parent 5dee245 commit d1e445f

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

openandroidinstaller/styles.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,9 @@ class Markdown(ft.Markdown):
2727
"""Markdown element to replace the markdown element from flet but is selectable."""
2828

2929
def __init__(self, *args, **kwargs):
30-
super().__init__(selectable=True, auto_follow_links=True, *args, **kwargs)
30+
super().__init__(
31+
selectable=True,
32+
on_tap_link=lambda e: self.page.launch_url(e.data),
33+
*args,
34+
**kwargs
35+
)

openandroidinstaller/views/select_view.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ def init_visuals(
8484
replacing the firmware of the device with a completely custom ROM.
8585
8686
OpenAndroidInstaller works with the [TWRP recovery project](https://twrp.me/about).""",
87-
on_tap_link=lambda e: self.page.launch_url(e.data),
8887
),
8988
actions=[
9089
TextButton("Close", on_click=self.close_close_explain_images_dlg),

0 commit comments

Comments
 (0)