spacemeshos / smapp-lite

The light wallet application for Spacemesh network
2 stars 1 forks source link

Lock on unfocused app after 2 min + 30 seconds countdown #59

Closed brusherru closed 1 month ago

brusherru commented 1 month ago

No issue, but reported few times.

We had two mechanisms:

  1. if App is focused, but idle (no mouse move / key press) for 2 minutes — then it shows 30 seconds countdown and then lock the wallet,
  2. if App is unfocused then it starts 30 second countdown immediately,

The second mechanism is not convenient, because it locks the wallet even if you just switched tab to copy an address. So this PR changes the second mechanism to have the same behavior as the first one: it waits for 2 minutes and then starts 30 second countdown.

Also this PR removes inconsistency between production and staging/dev, where second mechanism was turned off. Now it will work the same in prod and dev.

github-actions[bot] commented 1 month ago

You can preview the changes at : https://6cba969e.smapp-lite-prod.pages.dev