mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
Folders: Small fixes
This commit is contained in:
parent
cff3c2c69d
commit
ee4e910454
2 changed files with 4 additions and 4 deletions
|
@ -474,7 +474,7 @@ void localLibraryWidget::setupBooksListToggle(int pageNumber) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void localLibraryWidget::setupBooksListFolders(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);
|
QStringList dirList = QDir(pathForFolders).entryList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name);
|
||||||
log("Full directory list: "+ dirList.join(","), className);
|
log("Full directory list: "+ dirList.join(","), className);
|
||||||
|
|
||||||
|
@ -590,7 +590,7 @@ void localLibraryWidget::setupBooksListFolders(int pageNumber) {
|
||||||
|
|
||||||
if(in <= buttonsNumber) {
|
if(in <= buttonsNumber) {
|
||||||
for(int i = in; i <= buttonsNumber; i++) {
|
for(int i = in; i <= buttonsNumber; i++) {
|
||||||
log("Hiding items in LocalLibrary", className);
|
log("Hiding items", className);
|
||||||
bookIconArray[i]->hide();
|
bookIconArray[i]->hide();
|
||||||
bookBtnArray[i]->hide();
|
bookBtnArray[i]->hide();
|
||||||
if(i - 1 < buttonsNumber) {
|
if(i - 1 < buttonsNumber) {
|
||||||
|
|
|
@ -1101,12 +1101,12 @@ void settings::on_localLibraryShowFoldersCheckBox_toggled(bool checked)
|
||||||
if(checked == true) {
|
if(checked == true) {
|
||||||
logEnabled(settingString, className);
|
logEnabled(settingString, className);
|
||||||
checked_box = true;
|
checked_box = true;
|
||||||
writeconfig(".config/21-local_library/folders", "Folders");
|
writeconfig(".config/21-local_library/folders", "Folders=");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
logDisabled(settingString, className);
|
logDisabled(settingString, className);
|
||||||
checked_box = false;
|
checked_box = false;
|
||||||
writeconfig(".config/21-local_library/folders", "Folders");
|
writeconfig(".config/21-local_library/folders", "Folders=");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue