mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
run garbage collector after webengine window
we GC on autosave, but doing an explicit GC prevents excess memory consumption when rapidly opening and closing windows using webengine
This commit is contained in:
parent
d1f05907be
commit
2d25069936
1 changed files with 1 additions and 0 deletions
|
@ -1163,6 +1163,7 @@ Please ensure a profile is open and Anki is not busy, then try again."""),
|
|||
|
||||
def gcWindow(self, obj):
|
||||
obj.deleteLater()
|
||||
self.progress.timer(1000, self.doGC, False)
|
||||
|
||||
def disableGC(self):
|
||||
gc.collect()
|
||||
|
|
Loading…
Reference in a new issue