da8ef8dab8
Add stop download button Not a perfect solution, but it should work
15 lines
546 B
Python
15 lines
546 B
Python
import os
|
|
|
|
|
|
class InstallOptions:
|
|
def __init__(self, app_name: str, path: str = os.path.expanduser("~/legendary"),
|
|
max_workers: int = os.cpu_count() * 2, repair: bool = False,
|
|
download_only: bool = False, ignore_free_space: bool = False, force: bool = False):
|
|
self.app_name = app_name
|
|
self.path = path
|
|
self.max_workers = max_workers
|
|
self.repair = repair
|
|
self.download_only = download_only
|
|
self.ignore_free_space = ignore_free_space
|
|
self.force = force
|
|
|