mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 03:39:17 +01:00
Save Galaxy tokens in destructor
This commit is contained in:
parent
257b6b0137
commit
6c2a3b4392
@ -152,6 +152,10 @@ Downloader::~Downloader()
|
||||
if (Globals::globalConfig.bReport)
|
||||
if (this->report_ofs)
|
||||
this->report_ofs.close();
|
||||
|
||||
if (!gogGalaxy->isTokenExpired())
|
||||
this->saveGalaxyJSON();
|
||||
|
||||
delete progressbar;
|
||||
delete gogGalaxy;
|
||||
delete gogAPI;
|
||||
|
Loading…
Reference in New Issue
Block a user