Skip to content

Commit ff9d15d

Browse files
authored
Update wait_for_start to pass selected files from GUI to main acquire
1 parent a9dcdb6 commit ff9d15d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

acquire/gui/base.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class GUI:
2020

2121
thread = None
2222
folder = None
23+
files = None
2324
ready = False
2425
auto_upload = None
2526
upload_available = False
@@ -55,7 +56,7 @@ def shard(self, shard: int) -> None:
5556
raise GUIError("Shards have to be between 0-100")
5657
self._shard = shard
5758

58-
def wait_for_start(self, args: Namespace) -> tuple[str, bool, bool]:
59+
def wait_for_start(self, args: Namespace) -> tuple[str, str, bool, bool]:
5960
"""Starts GUI thread and waits for start button to be clicked."""
6061

6162
def gui_thread() -> None:
@@ -65,7 +66,7 @@ def gui_thread() -> None:
6566
GUI.thread.start()
6667
while not self.ready and not self._closed:
6768
time.sleep(1)
68-
return self.folder, self.auto_upload, self._closed
69+
return self.folder, self.files, self.auto_upload, self._closed
6970

7071
def message(self, message: str) -> None:
7172
"""Starts GUI thread and waits for start button to be clicked."""
@@ -92,8 +93,8 @@ class Stub(GUI):
9293
def message(self, message: str) -> None:
9394
pass
9495

95-
def wait_for_start(self, args: Namespace) -> tuple[str, bool, bool]:
96-
return args.output, args.auto_upload, False
96+
def wait_for_start(self, args: Namespace) -> tuple[str, str, bool, bool]:
97+
return args.output, None, args.auto_upload, False
9798

9899
def wait_for_quit(self) -> None:
99100
pass

0 commit comments

Comments
 (0)