remove unnecessary if-statement

pull/2253/head
thyttan 2022-11-10 16:43:47 +01:00 committed by GitHub
parent dfa39f9cff
commit 9a9a6751ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -16,8 +16,6 @@ g.setColor(settings.bg);
g.fillRect(0,0,g.getWidth(),g.getHeight());
Bangle.setUI({
mode : 'custom',
back : load, // B2: SW back button
btn : (n)=>{ // B1&2: Any HW button turns off
if (n==1 || n==2 || n==3) load(); // n==4, n==5 is triggered by left/right press of touch screen on B1 and should not exit clock
}
back : load, // B2: SW back button to exit
btn : ()=>{load();}, // B1&2: HW button to exit. // A simple 'load' as on the line above did not work for btn???
});