02-20-2015, 01:01 AM | #1 |
Connoisseur
Posts: 77
Karma: 3090
Join Date: Apr 2013
Location: California
Device: Kobo Aura One, Kobo Aura H20,Kindle PW1
|
Tags Column - Left Alignment not maintaining adjustment
I am not sure if it has always been this way or not, but I just recently realized that the Tags Column is center justified,
I prefer it to be left justified as all the other columns are. Except when I choose to re-adjust it to left alignment it is not retaining the chosen setting after a calibre restart. Is this working as intended or is it a bug? Thanks crissman |
02-20-2015, 03:57 AM | #2 | |
Grand Sorcerer
Posts: 11,950
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
It sounds like your calibre configuration directory is read only, preventing calibre from saving the change to left justified. Another possibility: something is overwriting the configuration directory, such as some cloud sync. |
|
Advert | |
|
02-20-2015, 10:43 AM | #3 | |
Connoisseur
Posts: 77
Karma: 3090
Join Date: Apr 2013
Location: California
Device: Kobo Aura One, Kobo Aura H20,Kindle PW1
|
Quote:
|
|
02-20-2015, 11:43 AM | #4 |
Grand Sorcerer
Posts: 11,950
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
I looked at the code and the column alignment is stored in the metadata.db file in the library. You can see the saved alignment by looking at the metadata_db_prefs_backup.json file in your library, searching for "column_alignment". The information is saved in both the metadata.db and the .json file when calibre exits. The .json file is a backup.
If Aerofs is overwriting your metadata.db then you might be in a world of hurt. I suggest that you run check library to be sure that books you have added are really in the db. An easy test: start calibre, change the alignment for tags, and quit calibre. Look at the .json file to see if the alignment is changed. Note that a column is listed only if its alignment is not "left". If the alignment is "left" then start calibre. If it becomes "center" then something, such as a plugin, is changing it at startup. |
02-20-2015, 02:54 PM | #5 | |
null operator (he/him)
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
When I started using calibre I had the idea to use the alignment of Title and Author as a means of giving me a spatial clue as to the current library, - eg left/left would be Main (regular books), left/centre would be Journals, centre/centre would be Media etc. But I found that if I changed the alignment of Authors in Journals to 'centre', the realignment of the Authors column propagated itself to Main and Media etc. So I gave up on the idea, on the assumption that the alignment must be a global setting rather than a library setting - despite what my eyes were telling me. The propagation seems to occurs if I switch from a library where Author column_alignment has a value (centre or right) in its library preferences to a library where the Author column has no value - i.e. it's left-aligned by default. I can avoid the propagation if I forego use of the library switch feature, and instead always open calibre using the --with-library option and stop it before opening with another library - but I choose not to do that Perhaps this is another defect that's been lurking long since BR |
|
Advert | |
|
02-20-2015, 03:48 PM | #6 | |
Grand Sorcerer
Posts: 11,950
Karma: 7225107
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
The bug: when you first open calibre it builds a map of column keys to alignment. Only the exceptions from "left" are stored in the DB. When you switch libraries, calibre again builds the map, but this time the old non-left values are still there because nothing restored the map to its default values. I have submitted a fix. |
|
02-20-2015, 04:14 PM | #7 |
null operator (he/him)
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
02-20-2015, 10:49 PM | #8 | |
Connoisseur
Posts: 77
Karma: 3090
Join Date: Apr 2013
Location: California
Device: Kobo Aura One, Kobo Aura H20,Kindle PW1
|
Quote:
Ok tried the "test" and your right I changed the alignment to left, quit calibre opened the .json did show "center alignment. exited Aerofs, reopened calibre, changed the alignment again closed calibre, opened .json it showed nothing, no "center" So assumed it Aerofs overwriting the .json as you suggested. Figured I would see if it was for sure by doing the "Test" agaiin. Restarted Aerofs, Opened Calibre, verified in the Aerofs log that the .json files was updated. Tags still showed left alignment.. Hmm, closed calibre exited Aerofs opened the .json, still was left as "center was not there. Opened Calibre yet again (without Aerofs) still left justified, started Aerofs, No matter which sequence I opened and closed both programs it stayed left justified!! Not sure what fixed it or if it just temporary, but it is now left justified. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Author tag column on left | jmccall93 | Library Management | 2 | 09-30-2013 03:17 PM |
Maintaining Device Column Settings? | JeffGeorge | Devices | 4 | 08-07-2013 10:57 AM |
Paperwhite: left alignment per default? | Analogus | Kindle Developer's Corner | 0 | 01-24-2013 03:36 AM |
left alignment | speakingtohe | Calibre | 2 | 08-13-2010 10:39 AM |
left alignment revisited | jlinden | Amazon Kindle | 15 | 02-22-2010 02:41 AM |