hluk / copyq-commands

Useful commands for CopyQ clipboard manager.
328 stars 72 forks source link

trim language string from dialog #72

Closed niun closed 1 year ago

niun commented 1 year ago

Problem:

I sometimes got

CopyQ Note [2023-05-01 18:01:52.644] <Server-8336>:    Failed loading language 'deu
'

I don't really understand but the choice dialog seems to add a newline to the selected language string (only sometimes?) or isn't it removed by the split('\n') call? However, calling a trim() on language fixed the problem for me.

hluk commented 1 year ago

Thanks!