Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Commit 201d279

Browse files
committed
Destroy list before launching app
1 parent 0ed9643 commit 201d279

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

esp32/modules/launcher.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@
3232

3333
def run_it(pushed):
3434
if (pushed):
35+
selected = options.selected_index()
36+
options.destroy()
37+
3538
ugfx.clear(ugfx.BLACK)
3639
ugfx.string(40,25,"Running:","Roboto_BlackItalic24",ugfx.WHITE)
37-
ugfx.string(100,75, apps[options.selected_index()],"PermanentMarker22",ugfx.WHITE)
40+
ugfx.string(100,75, apps[selected],"PermanentMarker22",ugfx.WHITE)
3841
ugfx.flush()
39-
__import__(apps[options.selected_index()])
42+
__import__(apps[selected])
4043

4144
ugfx.input_attach(ugfx.BTN_A, run_it)
4245
ugfx.input_attach(ugfx.BTN_B, run_it)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy