Bug 462707 - Hide swap sensors when swap is not available
Summary: Hide swap sensors when swap is not available
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: System Monitor widgets (show other bugs)
Version: 5.26.4
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-06 13:27 UTC by Patrick Silva
Modified: 2022-12-06 18:40 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot (140.58 KB, image/png)
2022-12-06 13:27 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2022-12-06 13:27:39 UTC
Created attachment 154359 [details]
screenshot

SUMMARY
My system does not have swap, but the swap sensors are available for selection in the settings of System Monitor widgets anyway.

STEPS TO REPRODUCE
0. use a system without swap
1. open the settings of a System Monitor widget
2. click on 'Sensors Details' section
3. click to add a sensor
4. click on 'Memory'

OBSERVED RESULT
swap sensors are available under 'Swap memory' category. Please see the attached screenshot.

EXPECTED RESULT
Hide swap sensors when the system does not have swap

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Graphics Platform: Wayland