mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-24 04:32:15 -04:00
Dropped an unused parameter
This commit is contained in:
parent
c6d892a15f
commit
8073593384
@ -200,7 +200,7 @@ void ContentManager::onCustomContextMenu(const QPoint &point)
|
||||
pauseBook(id, index);
|
||||
});
|
||||
connect(&menuCancelBook, &QAction::triggered, [=]() {
|
||||
cancelBook(id, index);
|
||||
cancelBook(id);
|
||||
});
|
||||
connect(&menuResumeBook, &QAction::triggered, [=]() {
|
||||
resumeBook(id, index);
|
||||
@ -664,10 +664,8 @@ void ContentManager::resumeBook(const QString& id)
|
||||
}
|
||||
}
|
||||
|
||||
void ContentManager::cancelBook(const QString& id, QModelIndex index)
|
||||
void ContentManager::cancelBook(const QString& id)
|
||||
{
|
||||
Q_UNUSED(index);
|
||||
|
||||
auto text = gt("cancel-download-text");
|
||||
text = text.replace("{{ZIM}}", QString::fromStdString(mp_library->getBookById(id).getTitle()));
|
||||
showConfirmBox(gt("cancel-download"), text, mp_view, [=]() {
|
||||
|
@ -64,7 +64,7 @@ public slots:
|
||||
void pauseBook(const QString& id, QModelIndex index);
|
||||
void resumeBook(const QString& id, QModelIndex index);
|
||||
// cancelBook() asks for confirmation (reallyCancelBook() doesn't)
|
||||
void cancelBook(const QString& id, QModelIndex index);
|
||||
void cancelBook(const QString& id);
|
||||
void onCustomContextMenu(const QPoint &point);
|
||||
void openBookWithIndex(const QModelIndex& index);
|
||||
void updateDownloads();
|
||||
|
@ -253,7 +253,7 @@ void ContentManagerDelegate::handleLastColumnClicked(const QModelIndex& index, Q
|
||||
if (const auto downloadState = node->getDownloadState()) {
|
||||
if (downloadState->paused) {
|
||||
if (clickX < (x + w/2)) {
|
||||
KiwixApp::instance()->getContentManager()->cancelBook(id, index);
|
||||
KiwixApp::instance()->getContentManager()->cancelBook(id);
|
||||
} else {
|
||||
KiwixApp::instance()->getContentManager()->resumeBook(id, index);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user