Added copy to clipboard
This commit is contained in:
parent
cb27a0d774
commit
1e6b6298e5
|
@ -242,10 +242,18 @@ class RVDetails(MDRecycleView):
|
||||||
if ts != None:
|
if ts != None:
|
||||||
ts_str = datetime.fromtimestamp(ts).strftime("%Y-%m-%d %H:%M:%S")
|
ts_str = datetime.fromtimestamp(ts).strftime("%Y-%m-%d %H:%M:%S")
|
||||||
formatted_values = f"Recorded [b]{RNS.prettytime(time.time()-ts, compact=True)} ago[/b] ({ts_str})"
|
formatted_values = f"Recorded [b]{RNS.prettytime(time.time()-ts, compact=True)} ago[/b] ({ts_str})"
|
||||||
|
def copy_info(e=None):
|
||||||
|
Clipboard.copy(ts_str)
|
||||||
|
toast("Copied to clipboard")
|
||||||
|
release_function = copy_info
|
||||||
elif name == "Information":
|
elif name == "Information":
|
||||||
info = s["values"]["contents"]
|
info = s["values"]["contents"]
|
||||||
if info != None:
|
if info != None:
|
||||||
istr = str(info)
|
istr = str(info)
|
||||||
|
def copy_info(e=None):
|
||||||
|
Clipboard.copy(istr)
|
||||||
|
toast("Copied to clipboard")
|
||||||
|
release_function = copy_info
|
||||||
external_text = escape_markup(istr)
|
external_text = escape_markup(istr)
|
||||||
formatted_values = f"[b]Information[/b]: {external_text}"
|
formatted_values = f"[b]Information[/b]: {external_text}"
|
||||||
elif name == "Received":
|
elif name == "Received":
|
||||||
|
|
Loading…
Reference in New Issue