added logic for removing book download url on download complete

This commit is contained in:
Manan Jethwani 2021-08-20 00:42:10 +05:30 committed by Matthieu Gautier
parent 894e9a1b02
commit 31e63e0d9f

View File

@ -149,6 +149,8 @@ QStringList ContentManager::updateDownloadInfos(QString id, const QStringList &k
b.setPath(QDir::toNativeSeparators(tmp).toStdString());
b.setDownloadId("");
b.setPathValid(true);
// removing book url so that download link in kiwix-serve is not displayed.
b.setUrl("");
mp_library->save();
mp_library->bookmarksChanged();
if (!m_local) {