03-03-2021, 09:55 PM | #76 |
null operator (he/him)
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Well not totally false, a half truth.
If I set the interface language to French the Quick Switch and Create/switch library items are disabled, but when I reset it back to English they are reinstated - probably something to do with the Choose Library label changing to the current library name. BR |
03-04-2021, 11:05 AM | #77 |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Basically, that's how I would expect FM to work in this case.
Calibre doesn't provide a unique (non-translated) name for those actions and FM stores them as text in the JSON. You can't set keyboard shortcuts to Quick Switch and Create/switch library either. I don't think this can be fixed without changes to Calibre and FM. |
03-04-2021, 02:21 PM | #78 | |
null operator (he/him)
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
And, capink has started a related thread in the Development sub-forum as this also effect his Action China plugin. BR |
|
03-04-2021, 03:01 PM | #79 |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
Arguably, FM already is showing it by disabling those options.
I see the thread by capink, that's a workable solution (probably--does Kovid's suggestion work in the case of translated plugins?) But because existing non-English users have saved settings with their translated strings, FM would need to add a schema version (Reading Lists, for example, already has one) and change previously saved settings to 'canonical' strings. Which if done incorrectly could destroy people's settings. It's a fairly obscure corner case that only came up in testing, not actual use. And FM has been working this long as-is. Plus, my understanding of FM is rather shallow. So while I'll think about it, I'm hesitant to make changes for this. (If there are users out there that this is a real-world problem for, I'll consider it a lot more seriously.) |
03-05-2021, 06:16 AM | #80 | ||
Wizard
Posts: 1,090
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
|
Quote:
Quote:
|
||
03-05-2021, 04:27 PM | #81 |
null operator (he/him)
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
FWIW & IMO - for the FM plugin, the language flipping issue is very far edge, hence not worthy of a new release. I don't use the Action Chain plugin so I won't comment on it.
However, the manner of dealing with 'invalid' menu items does warrant consideration. At the moment 'invalid items' are 'greyed out', however I find 'greyed out' items difficult to see in Dark Mode, the text remains bright white but with what might be a shadow effect. Not all items that can be added to FM have an icon, e.g. Choose Library->Quick Switch, hence that the icon is also missing is irrelevant. How might an item become invalid?
BR Last edited by BetterRed; 03-05-2021 at 04:40 PM. Reason: Add last para |
03-05-2021, 08:28 PM | #82 |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
capink's code looks fine (aside from overuse of temp variables, IMO).
But again, my understanding of FM is relatively shallow and I'm not comfortable with this unless it's been thoroughly tested. And I'm not particularly interested in doing that testing myself. Disabled options not being visible in Dark Mode isn't really FM's fault--that's Dark Mode or Calibre or Qt in some combination. It's not difficult to append '(not found)' or something to the displayed text and/or set a specific icon to disabled menu entries--although color is lost due to being disabled; and the 'standard' icons included in Calibre can be changed by Calibre icon themes. Or instead of being disabled, invalid actions could pop a dialog reporting they are invalid now. And have specific icon. |
03-05-2021, 08:37 PM | #83 |
Custom User Title
Posts: 8,625
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
possibly related: "Show marked books" on the FM also greys out due to the text changes. I dont think anybody actually uses that though. I had trouble with it on Action Chains too.
|
04-02-2021, 06:47 PM | #84 |
Custom User Title
Posts: 8,625
Karma: 61176603
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Currently, is it possible to make custom submenus for the Favourites menu? Mine is getting rather lengthy.
|
04-02-2021, 08:52 PM | #85 |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
No, it isn't. You can add entries that lead to existing menus, but that's about it.
Calibre's configuration for menus & toolbars doesn't allow for custom submenus either. |
05-04-2021, 04:08 AM | #86 | |
Member
Posts: 19
Karma: 10
Join Date: Apr 2020
Device: Kobo Forma
|
This OP is absolutely brilliant. And so are you, frankly. I presumably read it years ago when I first downloaded this but I'd forgotten about it.
Brilliant plugin. Thanks, man. Quote:
|
|
10-30-2021, 04:37 PM | #87 |
Morlock
Posts: 33
Karma: 2734796
Join Date: Oct 2021
Device: Kindle Paperwhite
|
Favourites menu name spelling change
@DoctorOhh Would you mind telling me how you changed the spelling? I use Favourites for a single purpose and would like to change the name to match.
|
01-11-2022, 09:06 PM | #88 |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
New Test Version
2022-01-11 - Changes for upcoming Qt6 Calibre - Fix Icon scaling in FM config This version contains changes necessary for the upcoming Qt6 Calibre version. Icon display/scaling has been broken since Calibre v3(?!) came out? At least for icons other than 32x32. The code still says backward compatible to v0.8, but I'm v2.85.1 is the oldest version I keep around. Unless some one else wants to test it against older versions, I will be changing the minimum_calibre_version to 2.85.1. Last edited by JimmXinu; 01-20-2022 at 12:21 PM. Reason: Remove obsolete test version |
01-11-2022, 09:46 PM | #89 | |
null operator (he/him)
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
calibre, version 1.48.0 ERROR: Must restart: You must restart calibre before you can configure the <b>Favourites Menu</b> plugin No matter how many times I restart, stop/start. I do NOT need it to work in version 1.xx. BR |
|
01-11-2022, 10:05 PM | #90 |
Plugin Developer
Posts: 6,320
Karma: 3966249
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
|
v2.85.1 it is then!
Thanks for checking. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] EpubMerge | JimmXinu | Plugins | 522 | 04-01-2024 10:25 AM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 AM |
[GUI Plugin] KindleUnpack - The Plugin | DiapDealer | Plugins | 492 | 10-25-2022 08:13 AM |
[GUI Plugin] FanFictionDownLoader | JimmXinu | Plugins | 3985 | 05-08-2015 11:18 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |