mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-06-27 17:09:53 -04:00
parent
794310dca9
commit
e27cbab7ee
1 changed files with 4 additions and 4 deletions
|
@ -513,14 +513,14 @@ void SearchPluginManager::updateNova()
|
|||
const Path enginePath = engineLocation();
|
||||
|
||||
QFile packageFile {(enginePath / Path(u"__init__.py"_s)).data()};
|
||||
packageFile.open(QIODevice::WriteOnly);
|
||||
packageFile.close();
|
||||
if (packageFile.open(QIODevice::WriteOnly))
|
||||
packageFile.close();
|
||||
|
||||
Utils::Fs::mkdir(enginePath / Path(u"engines"_s));
|
||||
|
||||
QFile packageFile2 {(enginePath / Path(u"engines/__init__.py"_s)).data()};
|
||||
packageFile2.open(QIODevice::WriteOnly);
|
||||
packageFile2.close();
|
||||
if (packageFile2.open(QIODevice::WriteOnly))
|
||||
packageFile2.close();
|
||||
|
||||
// Copy search plugin files (if necessary)
|
||||
const auto updateFile = [&enginePath](const Path &filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue