mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Update last time opened when updating reading progress from ios client.
This commit is contained in:
parent
38e3b40e8f
commit
e77d613002
@ -759,6 +759,9 @@ void DBHelper::updateFromRemoteClient(qulonglong libraryId,const ComicInfo & com
|
|||||||
comic.info.read = true;
|
comic.info.read = true;
|
||||||
|
|
||||||
comic.info.hasBeenOpened = true;
|
comic.info.hasBeenOpened = true;
|
||||||
|
|
||||||
|
if (comic.info.lastTimeOpened.toULongLong() < comicInfo.lastTimeOpened.toULongLong())
|
||||||
|
comic.info.lastTimeOpened = comicInfo.lastTimeOpened;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(comicInfo.rating > 0)
|
if(comicInfo.rating > 0)
|
||||||
@ -794,6 +797,9 @@ void DBHelper::updateFromRemoteClientWithHash(const ComicInfo & comicInfo)
|
|||||||
info.lastTimeOpened = QDateTime::currentSecsSinceEpoch();
|
info.lastTimeOpened = QDateTime::currentSecsSinceEpoch();
|
||||||
|
|
||||||
info.hasBeenOpened = true;
|
info.hasBeenOpened = true;
|
||||||
|
|
||||||
|
if (info.lastTimeOpened.toULongLong() < comicInfo.lastTimeOpened.toULongLong())
|
||||||
|
info.lastTimeOpened = comicInfo.lastTimeOpened;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(comicInfo.rating > 0)
|
if(comicInfo.rating > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user