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

If an sd card is removed using the UI and NO_SD_DETECT is enabled, just refresh the UI #26362

Closed
wants to merge 21 commits into from

Conversation

SaschaKP
Copy link
Contributor

Description

If an sd card is removed using the menu the ui won't be updated, just update the menu if the flag NO_SD_DETECT is enabled.

Requirements

NO_SD_DETECT must be enabled for this change to take effect

Benefits

after removing a card with the ui, the ui itself will be updated with the new state, instead of having to move the cursor or change the page to view the ui update with the card removed information

@SaschaKP
Copy link
Contributor Author

Hello, sincerely I don't know why the test will fail, but anyway this is only for a narrow number of people that own some printers with a possibly broken sd_card detection, using the ui won't update the status of the card when it is removed, but will update it's status if you select "attach sd card" from the menu, so I just inserted an #if ENABLED(NO_SD_DETECT) with the ui.refresh() directly emulating the behaviour of card.mount().

@SaschaKP SaschaKP changed the title Update cardreader.cpp If an sd card is removed using the UI and NO_SD_DETECT is enabled, just refresh the UI Oct 21, 2023
@thisiskeithb
Copy link
Member

Hello, sincerely I don't know why the test will fail

#26339 needs to be merged for CI tests to work.

@SaschaKP
Copy link
Contributor Author

Done, thanks for the advice @thisiskeithb

@thisiskeithb
Copy link
Member

You shouldn’t merge pending PRs into other pending PRs. I meant that we’re waiting for my PR to be merged into the main code base first.

@SaschaKP
Copy link
Contributor Author

D'oh

@thisiskeithb
Copy link
Member

I can't seem to edit this PR, but you'll need to drop/revert those changes & just push the commit to fix the SD UI refresh bug.

@thinkyhead
Copy link
Member

Since it can't be edited for one reason or another and is very simple, I've moved it over to #26366.

@thinkyhead thinkyhead closed this Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants