make sure we save when main window closed while not focused
make sure we save when main window closed while not focused

weihautin/anki,ospalh/libanki3,jakesyl/ruby-card,abeyer/anki,weihautin/anki,subfusc/anki,LucasCabello/anki,jakesyl/ruby-card,sunclx/anki,florianjacob/anki,jkitching/anki,holycrepe/anki,go38/anki,xuewenfei/anki,hssm/anki,Stvad/anki,hssm/anki,eduOS/anki,socialpercon/anki-1,kenjhim/anki,Arthaey/anki