Folders: Small fixes

This commit is contained in:
Nicolas Mailloux 2022-09-19 00:09:14 -04:00
parent cff3c2c69d
commit ee4e910454
2 changed files with 4 additions and 4 deletions

View file

@ -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) {

View file

@ -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=");
}
}