Fix translation missing from YACReader when opening from YACReaderLibrary

This commit is contained in:
Luis Ángel San Martín 2024-01-19 16:45:32 +01:00
parent 4942e641dc
commit 2f86eca240

View File

@ -34,8 +34,9 @@ bool YACReader::openComic(const ComicDB &comic,
#endif
#ifdef Q_OS_WIN
QString executablePath = QDir::cleanPath(QCoreApplication::applicationDirPath() + "/YACReader.exe");
QStringList parameters { path, QString("--comicId=%1").arg(comic.id), QString("--libraryId=%1").arg(libraryId), labelParam };
yacreaderFound = QProcess::startDetached(QDir::cleanPath(QCoreApplication::applicationDirPath() + "/YACReader.exe"), parameters);
yacreaderFound = QProcess::startDetached(executablePath, parameters, QCoreApplication::applicationDirPath());
#endif
#if defined Q_OS_UNIX && !defined Q_OS_MACOS