Nonsensical fix for nonsensical problem

Apparently log() makes the device hang forever on the "Sync in progress" screen. So no option but to remove those calls ...
This commit is contained in:
Nicolas Mailloux 2022-04-18 22:54:11 -04:00
parent 8ad06262e9
commit 55a870b2a2

View file

@ -259,12 +259,10 @@ void libraryWidget::syncCatalog() {
if(syncDone == false) { if(syncDone == false) {
if(QFile::exists("/inkbox/gutenbergSyncDone") == true) { if(QFile::exists("/inkbox/gutenbergSyncDone") == true) {
if(checkconfig("/inkbox/gutenbergSyncDone") == true) { if(checkconfig("/inkbox/gutenbergSyncDone") == true) {
log("syncCatalog(): Gutenberg sync successfully completed", className);
toastWindow->close(); toastWindow->close();
setupView(); setupView();
} }
else { else {
log("syncCatalog(): Gutenberg sync encountered an error", className);
toastWindow->close(); toastWindow->close();
showToast("Error"); showToast("Error");
QFile::remove("/external_root/opt/storage/gutenberg/last_sync"); QFile::remove("/external_root/opt/storage/gutenberg/last_sync");