jahnf / Projecteur

Linux Desktop Application for the Logitech Spotlight device (and similar devices) - Digital Laser Pointer
MIT License
379 stars 33 forks source link

Projecteur sorts the Spotlight Presets on start #156

Closed mayanksuman closed 3 years ago

mayanksuman commented 3 years ago

Description Projecteur 1.0 alpha is alphabetically sorting preset name in configuration file during start, which may lead to wrong preset order for the user. This may lead to surprises while cycling preset during presentation.

To Reproduce Create a few spotlight presets and restart the projecteur.

Expected behavior Preset should be saved in the same order as user defined them, and Projecteur should not sort them automatically.

Desktop/Linux Environment (please complete the following information):

mayanksuman commented 3 years ago

This is the limitation of QSettings. If a user want to maintain a order then he can use numbers for same. For example, instead of naming a preset as Pointer and Highlight, name it 1.Pointer and 2.Highlight, respectively.

jahnf commented 3 years ago

This is the limitation of QSettings. If a user want to maintain a order then he can use numbers for same. For example, instead of naming a preset as Pointer and Highlight, name it 1.Pointer and 2.Highlight, respectively.

Sounds good. And while there are endless possible settings for the spotlight overlay - I doubt that users will have more than 3 presets in real life situations :)