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,
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.
No issue, but reported few times.
We had two mechanisms:
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.