messagesoverlay - Fix auto discard setting interpretation
parent
5c8817e86a
commit
ab10887a18
|
|
@ -448,13 +448,15 @@ let clearingTimeout;
|
||||||
|
|
||||||
let updateClearingTimeout = ()=>{
|
let updateClearingTimeout = ()=>{
|
||||||
LOG("updateClearingTimeout");
|
LOG("updateClearingTimeout");
|
||||||
if (settings.autoclear >= 0)
|
if (settings.autoclear <= 0)
|
||||||
return;
|
return;
|
||||||
|
LOG("Remove clearing timeout", clearingTimeout);
|
||||||
if (clearingTimeout) clearTimeout(clearingTimeout);
|
if (clearingTimeout) clearTimeout(clearingTimeout);
|
||||||
if (Bangle.isLocked()){
|
if (Bangle.isLocked()){
|
||||||
|
LOG("Set new clearing timeout");
|
||||||
clearingTimeout = setTimeout(()=>{
|
clearingTimeout = setTimeout(()=>{
|
||||||
LOG("setNewTimeut");
|
LOG("setNewTimeout");
|
||||||
let current = eventQueue.pop();
|
eventQueue.pop();
|
||||||
if (eventQueue.length > 0){
|
if (eventQueue.length > 0){
|
||||||
LOG("still got elements");
|
LOG("still got elements");
|
||||||
updateClearingTimeout();
|
updateClearingTimeout();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue