Skip to content

fix: Make _redrawMenu() append/pop hot items according to sensor pref…#569

Open
ner216 wants to merge 1 commit into
corecoding:developfrom
ner216:fix/update-hot-items-w-preferences
Open

fix: Make _redrawMenu() append/pop hot items according to sensor pref…#569
ner216 wants to merge 1 commit into
corecoding:developfrom
ner216:fix/update-hot-items-w-preferences

Conversation

@ner216

@ner216 ner216 commented Jul 10, 2026

Copy link
Copy Markdown

Problem:
When you disable a sensor such as 'Monitor Memory' in the extension preferences when you have a top bar icon showing that metric (hot item); the hot item will stay in the top bar with no way to remove it. The only way to remove it is to re-enable the sensor and then toggle off the hot item.

Example:
Screenshot From 2026-07-10 19-28-36

Solution:
I added logic to the '_redrawMenu()' method to check if a sensor group is enabled and update the array of hot sensors accordingly. I also added a gsettings signal to call _redrawMenu() every time a sensor group setting is toggled. Now, when a sensor group like "Monitor Memory" is disabled, the selected hot item will also disappear.

Example:
Screenshot From 2026-07-10 19-34-10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant