summaryrefslogtreecommitdiffstats
path: root/GUI/GUI/GUI/PythonWrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'GUI/GUI/GUI/PythonWrapper.cpp')
-rw-r--r--GUI/GUI/GUI/PythonWrapper.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/GUI/GUI/GUI/PythonWrapper.cpp b/GUI/GUI/GUI/PythonWrapper.cpp
index c875874..2347248 100644
--- a/GUI/GUI/GUI/PythonWrapper.cpp
+++ b/GUI/GUI/GUI/PythonWrapper.cpp
@@ -450,12 +450,14 @@ std::future<bool> PythonWrapper::StartApp(
const AppConfig& config,
const std::function<void(const std::string& out, const std::string& err)>&& out_cb,
const std::function<void(std::string& in)>&& in_cb,
- const std::function<bool()>&& run_cb) {
+ const std::function<bool()>&& run_cb,
+ const std::function<void()>&& prestart_cb) {
return std::move(std::async(std::launch::async,
[&](
const std::function<void(const std::string& out, const std::string& err)>&& out_cb,
const std::function<void(std::string& in)>&& in_cb,
const std::function<bool()>&& run_cb) -> bool {
+ prestart_cb();
return InvokeWithArgs({
"-u", // Unbuffered output
"Resources/Scripts/transcribe.py",