summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-31 04:03:16 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-11-06 07:45:00 -0500
commit9ff8a471aaf9a696610a055c091de39c41f985b7 (patch)
treef1856b9aae19a4db28da396db83113d74dafd984 /src
parentd72e94a92f31bcc720d12ed0cb2cc75b590e6770 (diff)
added waitForAllUSVFSProcesses() wrapper in OrganizerCore, the fact that it's in ProcessRunner is a bit of a hack
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp4
-rw-r--r--src/organizercore.cpp6
-rw-r--r--src/organizercore.h3
3 files changed, 10 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 3d32aa16..d304f8b7 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1310,9 +1310,7 @@ bool MainWindow::canExit()
}
}
- const auto r = m_OrganizerCore.processRunner()
- .waitForAllUSVFSProcessesWithLock(LockWidget::PreventExit);
-
+ const auto r = m_OrganizerCore.waitForAllUSVFSProcesses();
if (r == ProcessRunner::Cancelled) {
return false;
}
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index 57e24f3b..943750ed 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -1796,6 +1796,12 @@ void OrganizerCore::afterRun(const QFileInfo& binary, DWORD exitCode)
m_FinishedRun(binary.absoluteFilePath(), exitCode);
}
+ProcessRunner::Results OrganizerCore::waitForAllUSVFSProcesses(
+ LockWidget::Reasons reason)
+{
+ return processRunner().waitForAllUSVFSProcessesWithLock(reason);
+}
+
std::vector<Mapping> OrganizerCore::fileMapping(const QString &profileName,
const QString &customOverwrite)
{
diff --git a/src/organizercore.h b/src/organizercore.h
index d4882b92..0ba52284 100644
--- a/src/organizercore.h
+++ b/src/organizercore.h
@@ -143,6 +143,9 @@ public:
void afterRun(const QFileInfo& binary, DWORD exitCode);
+ ProcessRunner::Results waitForAllUSVFSProcesses(
+ LockWidget::Reasons reason=LockWidget::PreventExit);
+
void refreshESPList(bool force = false);
void refreshBSAList();