input-rec: Use toNativeSeparators() when opening recording

This commit is contained in:
TheLastRar 2024-06-03 23:03:54 +01:00 committed by Connor McLaughlin
parent 9e1acc5744
commit 877c3ee90d
1 changed files with 1 additions and 1 deletions

View File

@ -1791,7 +1791,7 @@ void MainWindow::onInputRecPlayActionTriggered()
Host::RunOnCPUThread([]() { g_InputRecording.stop(); }); Host::RunOnCPUThread([]() { g_InputRecording.stop(); });
m_ui.actionInputRecStop->setEnabled(false); m_ui.actionInputRecStop->setEnabled(false);
} }
Host::RunOnCPUThread([&, filename = fileNames.first().toStdString()]() { Host::RunOnCPUThread([&, filename = QDir::toNativeSeparators(fileNames.first()).toStdString()]() {
if (g_InputRecording.play(filename)) if (g_InputRecording.play(filename))
{ {
QtHost::RunOnUIThread([&]() { QtHost::RunOnUIThread([&]() {