mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2024-11-20 11:49: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 (Globals::globalConfig.bReport)
|
||||||
if (this->report_ofs)
|
if (this->report_ofs)
|
||||||
this->report_ofs.close();
|
this->report_ofs.close();
|
||||||
|
|
||||||
|
if (!gogGalaxy->isTokenExpired())
|
||||||
|
this->saveGalaxyJSON();
|
||||||
|
|
||||||
delete progressbar;
|
delete progressbar;
|
||||||
delete gogGalaxy;
|
delete gogGalaxy;
|
||||||
delete gogAPI;
|
delete gogAPI;
|
||||||
|
Loading…
Reference in New Issue
Block a user