Hide unused ARC and SWP in Basic Mode #1667
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This change allows the ARC and SWP to be hidden on Basic Mode again when not in use; by returning None when
mem_total
is invalid.Before the rework this happened in
data_conversion.rs
withconvert_mem_label
...Alternatively we could adjust the basic layout in
canvas.rs
to use data points(again) and filter inmem_basic
likegraph_data
does formem_graph
.Linux Basic Mode with changes:
![btm-patched](https://private-user-images.githubusercontent.com/7027701/409707650-43771df8-d7a6-498a-ba2a-b2cdf0e1b3f4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzNjUxMzMsIm5iZiI6MTczOTM2NDgzMywicGF0aCI6Ii83MDI3NzAxLzQwOTcwNzY1MC00Mzc3MWRmOC1kN2E2LTQ5OGEtYmEyYS1iMmNkZjBlMWIzZjQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMTI1MzUzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MDM3ZmNmMDgyMmNmMGJjMmY5ZjkxOTg2MzJhM2Y2YTc3OWExMjc1MDVkMzA5ODk3MTJhOGU5OTQyMzZmNjU0MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.pfAfSsbfPzuYqX4VUgTX36bpDSpM9v71wDt4sKYme0c)
Linux Basic Mode without changes(current):
Testing
If relevant, please state how this was tested. All changes must be tested to work:
If this is a code change, please also indicate which platforms were tested:
Checklist
If relevant, ensure the following have been met:
cargo fmt
)README.md
, help menu, doc pages, etc.)