Fix pageWidget not showing if reading ePUB

This commit is contained in:
Nicolas Mailloux 2022-01-09 11:18:04 -05:00
parent b97b3c5f82
commit df4e2e26a7

View file

@ -1358,15 +1358,15 @@ void reader::menubar_show() {
} }
ui->graphicsView->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded); ui->graphicsView->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
ui->graphicsView->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); ui->graphicsView->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
if(is_image == false) {
ui->pageWidget->setVisible(true);
}
else {
ui->pageWidget->setVisible(false);
}
} }
ui->buttonsBarWidget->setVisible(true); ui->buttonsBarWidget->setVisible(true);
ui->statusBarWidget->setVisible(true); ui->statusBarWidget->setVisible(true);
if(is_image == true) {
ui->pageWidget->setVisible(false);
}
else {
ui->pageWidget->setVisible(true);
}
string_checkconfig_ro("/opt/inkbox_device"); string_checkconfig_ro("/opt/inkbox_device");
if(checkconfig_str_val == "n705\n" or checkconfig_str_val == "n905\n") { if(checkconfig_str_val == "n705\n" or checkconfig_str_val == "n905\n") {