mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
committed by
Vladimir Golovnev (Glassez)
parent
1daa42e4fe
commit
13282d94ef
@@ -487,14 +487,14 @@ void SearchPluginManager::updateNova()
|
|||||||
const Path enginePath = engineLocation();
|
const Path enginePath = engineLocation();
|
||||||
|
|
||||||
QFile packageFile {(enginePath / Path(u"__init__.py"_s)).data()};
|
QFile packageFile {(enginePath / Path(u"__init__.py"_s)).data()};
|
||||||
packageFile.open(QIODevice::WriteOnly);
|
if (packageFile.open(QIODevice::WriteOnly))
|
||||||
packageFile.close();
|
packageFile.close();
|
||||||
|
|
||||||
Utils::Fs::mkdir(enginePath / Path(u"engines"_s));
|
Utils::Fs::mkdir(enginePath / Path(u"engines"_s));
|
||||||
|
|
||||||
QFile packageFile2 {(enginePath / Path(u"engines/__init__.py"_s)).data()};
|
QFile packageFile2 {(enginePath / Path(u"engines/__init__.py"_s)).data()};
|
||||||
packageFile2.open(QIODevice::WriteOnly);
|
if (packageFile2.open(QIODevice::WriteOnly))
|
||||||
packageFile2.close();
|
packageFile2.close();
|
||||||
|
|
||||||
// Copy search plugin files (if necessary)
|
// Copy search plugin files (if necessary)
|
||||||
const auto updateFile = [&enginePath](const Path &filename, const bool compareVersion)
|
const auto updateFile = [&enginePath](const Path &filename, const bool compareVersion)
|
||||||
|
|||||||
Reference in New Issue
Block a user