mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Better nesting & indentation
This commit is contained in:
parent
9a754715f7
commit
b7fa28b811
@ -251,15 +251,13 @@ void ContentManagerDelegate::handleLastColumnClicked(const QModelIndex& index, Q
|
|||||||
|
|
||||||
ContentManager& contentMgr = *KiwixApp::instance()->getContentManager();
|
ContentManager& contentMgr = *KiwixApp::instance()->getContentManager();
|
||||||
if (const auto downloadState = node->getDownloadState()) {
|
if (const auto downloadState = node->getDownloadState()) {
|
||||||
if (downloadState->paused) {
|
if ( !downloadState->paused ) {
|
||||||
if (clickX < (x + w/2)) {
|
contentMgr.pauseBook(id, index);
|
||||||
|
} else if (clickX < (x + w/2)) {
|
||||||
contentMgr.cancelBook(id);
|
contentMgr.cancelBook(id);
|
||||||
} else {
|
} else {
|
||||||
contentMgr.resumeBook(id, index);
|
contentMgr.resumeBook(id, index);
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
contentMgr.pauseBook(id, index);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
const auto book = KiwixApp::instance()->getLibrary()->getBookById(id);
|
const auto book = KiwixApp::instance()->getLibrary()->getBookById(id);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user