From ee4e91045472ffb7ed8c15901c90f91b1b762c62 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Mon, 19 Sep 2022 00:09:14 -0400 Subject: [PATCH] Folders: Small fixes --- src/localLibrary/locallibrarywidget.cpp | 4 ++-- src/settings/settings.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/localLibrary/locallibrarywidget.cpp b/src/localLibrary/locallibrarywidget.cpp index 5c44413..bf0c520 100644 --- a/src/localLibrary/locallibrarywidget.cpp +++ b/src/localLibrary/locallibrarywidget.cpp @@ -474,7 +474,7 @@ void localLibraryWidget::setupBooksListToggle(int pageNumber) { } void localLibraryWidget::setupBooksListFolders(int pageNumber) { - log("Showing local library with folders", className); + log("Showing folders", className); QStringList dirList = QDir(pathForFolders).entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name); log("Full directory list: "+ dirList.join(","), className); @@ -590,7 +590,7 @@ void localLibraryWidget::setupBooksListFolders(int pageNumber) { if(in <= buttonsNumber) { for(int i = in; i <= buttonsNumber; i++) { - log("Hiding items in LocalLibrary", className); + log("Hiding items", className); bookIconArray[i]->hide(); bookBtnArray[i]->hide(); if(i - 1 < buttonsNumber) { diff --git a/src/settings/settings.cpp b/src/settings/settings.cpp index b4734e8..d99f1b7 100644 --- a/src/settings/settings.cpp +++ b/src/settings/settings.cpp @@ -1101,12 +1101,12 @@ void settings::on_localLibraryShowFoldersCheckBox_toggled(bool checked) if(checked == true) { logEnabled(settingString, className); checked_box = true; - writeconfig(".config/21-local_library/folders", "Folders"); + writeconfig(".config/21-local_library/folders", "Folders="); } else { logDisabled(settingString, className); checked_box = false; - writeconfig(".config/21-local_library/folders", "Folders"); + writeconfig(".config/21-local_library/folders", "Folders="); } }