diff --git a/reader.cpp b/reader.cpp index faf979e..da5a1d1 100644 --- a/reader.cpp +++ b/reader.cpp @@ -1955,6 +1955,9 @@ void reader::setupPng() { // Initialized above graphicsScene->clear(); graphicsScene->addPixmap(pixmap); + // Shrinking scene if item is smaller than previous one + QRectF rect = graphicsScene->itemsBoundingRect(); + graphicsScene->setSceneRect(rect); ui->graphicsView->items().clear(); ui->graphicsView->setScene(graphicsScene); } diff --git a/settings.cpp b/settings.cpp index f98f15f..b0a7fce 100644 --- a/settings.cpp +++ b/settings.cpp @@ -891,6 +891,9 @@ void settings::openUpdateDialog() { } void settings::launchOtaUpdater() { + global::toast::modalToast = true; + global::toast::indefiniteToast = true; + emit showToast("Checking for updates"); otaManagerWindow = new otaManager(this); connect(otaManagerWindow, SIGNAL(canOtaUpdate(bool)), SLOT(openUpdateDialogOTA(bool))); otaManagerWindow->setAttribute(Qt::WA_DeleteOnClose);