Skip to content

fix(core): prevent homescreen flickering on Cancel message #5027

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

Closed
wants to merge 3 commits into from

Conversation

romanz
Copy link
Contributor

@romanz romanz commented May 11, 2025

Don't fade homescreen in case of Cancel.

@trezor-bot trezor-bot bot added this to Firmware May 11, 2025
@github-project-automation github-project-automation bot moved this to 🔎 Needs review in Firmware May 11, 2025
@romanz romanz self-assigned this May 11, 2025
@romanz romanz added the core Trezor Core firmware. Runs on Trezor Model T and T2B1. label May 11, 2025
Copy link

github-actions bot commented May 11, 2025

core UI changes device test click test persistence test
T2T1 Model T test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
T3B1 Safe 3 test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
T3T1 Safe 5 test(screens) main(screens) test(screens) main(screens) test(screens) main(screens)
All main(screens)

@romanz romanz requested review from matejcik and mmilata May 11, 2025 09:09
@@ -136,14 +136,14 @@ def kill_default() -> None:
default_task.close()


def close_others() -> None:
def close_others(close_default: bool = True) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please add a description of the option to the docstring

@romanz romanz marked this pull request as draft May 12, 2025 11:39
@romanz romanz force-pushed the romanz/fix-homescreen branch from ff73235 to 4ee8985 Compare May 12, 2025 14:10
@romanz
Copy link
Contributor Author

romanz commented May 25, 2025

Unfortunately, the above approach doesn't clear the locking animation if Cancel message is received:
Screencast from 2025-05-25 13-09-46.webm

@romanz romanz moved this from 🔎 Needs review to 🏃‍♀️ In progress in Firmware May 25, 2025
@romanz romanz moved this from 🏃‍♀️ In progress to 🎯 To do in Firmware May 25, 2025
@romanz
Copy link
Contributor Author

romanz commented May 25, 2025

OTOH, maybe adding layout polling API would be a better approach.

@romanz romanz closed this May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Trezor Core firmware. Runs on Trezor Model T and T2B1.
Projects
Status: 🎯 To do
Development

Successfully merging this pull request may close these issues.

Cancel message makes display flicker/blink even when no workflow is running
2 participants