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:
parent
f11e41b553
commit
867785edd9
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue