stop process api implementation

This commit is contained in:
Vinicius Moreira
2019-09-04 17:22:55 -03:00
parent 48a59405bf
commit 94b1395a9a

View File

@@ -30,6 +30,7 @@ class AsyncAction(QThread, ProcessWatcher):
super(AsyncAction, self).__init__()
self.wait_confirmation = False
self.confirmation_res = None
self.stop = False
def request_confirmation(self, title: str, body: str, components: List[InputViewComponent] = None, confirmation_label: str = None, deny_label: str = None) -> bool:
self.wait_confirmation = True
@@ -64,6 +65,9 @@ class AsyncAction(QThread, ProcessWatcher):
def change_progress(self, val: int):
self.signal_progress.emit(val)
def should_stop(self):
return self.stop
class UpdateSelectedApps(AsyncAction):