Skip to content

Commit

Permalink
✨ download file worker
Browse files Browse the repository at this point in the history
  • Loading branch information
juftin committed Sep 15, 2023
1 parent 2c1e156 commit 4fe051a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion browsr/browsr.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from rich.syntax import Syntax
from rich.traceback import Traceback
from rich_pixels import Pixels
from textual import on
from textual import on, work
from textual.binding import Binding, BindingType
from textual.containers import Container, Horizontal
from textual.events import Mount
Expand Down Expand Up @@ -346,6 +346,7 @@ def _get_download_file_name(self) -> pathlib.Path:
handled_download_path = handle_duplicate_filenames(file_path=download_path)
return handled_download_path

@work(thread=True)
def download_selected_file(self) -> None:
"""
Download the selected file.
Expand Down

0 comments on commit 4fe051a

Please sign in to comment.