1
0
Fork 0

Collect garbage before enabling apps

It especially helps loading big user defined apps.

Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
This commit is contained in:
Francesco Gazzetta 2021-11-29 11:48:35 +01:00
parent f11e41b553
commit 867785edd9

View file

@ -17,6 +17,7 @@ whilst still allowing users to activate so many awesome applications!
import wasp
import icons
import os
import gc
class SoftwareApp():
@ -114,6 +115,7 @@ class SoftwareApp():
if checkbox.touch(event):
label = checkbox.label.replace(' ', '')
if checkbox.state:
gc.collect()
wasp.system.register('apps.{}.{}App'.format(module, label))
else:
for app in wasp.system.launcher_ring: