Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sort temperature sensors by type and name #957

Merged

Conversation

pedrolamas
Copy link
Member

@pedrolamas pedrolamas commented Nov 21, 2022

Currently the thermals are grouped by heaters on top, then temperature fan, and finally temperature sensors, but these are unordered inside these groups.

This PR ensures that we still keep the above grouping, and then inside each group we sort by sensor type, and finally name.

image

Fixes #956

Signed-off-by: Pedro Lamas [email protected]

@pedrolamas pedrolamas added the FR - Enhancement New feature or request label Nov 21, 2022
@pedrolamas pedrolamas added this to the 1.22 milestone Nov 21, 2022
@pedrolamas pedrolamas requested review from matmen and kerbilg November 21, 2022 17:34
@pedrolamas pedrolamas merged commit 3f76335 into fluidd-core:develop Nov 21, 2022
@pedrolamas pedrolamas deleted the pedrolamas/fix-temp-sensor-order branch November 21, 2022 18:24
@pmaersk
Copy link

pmaersk commented Dec 7, 2022

Hi Pedro.

It fixes it mostly. The list is sorted alphabetically groupwise in the main thermals window, but the pop-up window is not. The pop-up should most likely have the same order as the main window with the greyed out entries not shown.

image

@pmaersk
Copy link

pmaersk commented Dec 7, 2022

Also in the main window the name is parsed for special characters replaced by spaces and space added in front of capital letters within the name (not the first letter I assume). You may want to parse the name in the pop-up the same way and keep the same group wise order (with the greyed-out entries removed).

koriwi pushed a commit to koriwi/fluidd that referenced this pull request Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FR - Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sorting Sensor names in list of Thermals
3 participants