connected_device_name() failure in 5.99.10

Bug #1980050 reported by ownedbycats
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Invalid
Undecided
Unassigned

Bug Description

Calibre 5.99.10 (running beta)

When my Kobo Libra H2O is connected, program: connected_device_name('main') returns an empty value. In 5.44, it returned 'Kobo Libra H2O.'

Posting it here as it appears to be a template issue.

Thanks.

description: updated
Revision history for this message
Kovid Goyal (kovid) wrote :

Where are you using this template?

Changed in calibre:
status: New → Incomplete
Revision history for this message
ownedbycats (ownedbycats) wrote :

In the conditional for an Action Chain, but I also tried it in the template tester.

Revision history for this message
Kovid Goyal (kovid) wrote :

I tried the following steps:

1) Connect to a folder
2) Open the termplate editor dialog
3) Use the following template:

program:connected_device_name('main')

the result was 'Folder Device' as expected.
I dont have a Kobo to test with but I dont see why the actual device
should make a difference. Can you replicate with connect to folder?

Revision history for this message
ownedbycats (ownedbycats) wrote :

Still getting a blank result

Revision history for this message
Kovid Goyal (kovid) wrote :

That's just the preview not updating. Check and uncheck the enable
breakpoints checkbox and the preview will update as expected. I dont use
the template editor so I dont know if this behavior is new to Qt 6 or it
was always like that.

Changed in calibre:
status: Incomplete → Invalid
Revision history for this message
ownedbycats (ownedbycats) wrote :

'Folder Device' did show up after breakpoints.

I did some more testing. With the breakpoints thing, 'Kobo Libra H2O' did show up on the template tester, but for some reason it's not passing through to Action Chains' condition evalulator. I'll post it on the plugin thread.

Revision history for this message
Kovid Goyal (kovid) wrote :

The issue with the template editor not auto-updating as you type was a
regression, now fixed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.