mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 21:14:33 -04:00
Update the current comic model when the server gets a syn request
Sadly the grid view resets its scroll to origin. Not sure if it is going to bother anyone, we'll see.
This commit is contained in:
@ -896,6 +896,27 @@ void ComicModel::reloadContinueReading()
|
||||
setupReadingModelData(_databasePath);
|
||||
}
|
||||
|
||||
void ComicModel::reload()
|
||||
{
|
||||
switch (mode) {
|
||||
case Folder:
|
||||
setupFolderModelData(sourceId, _databasePath);
|
||||
break;
|
||||
case Favorites:
|
||||
setupFavoritesModelData(_databasePath);
|
||||
break;
|
||||
case Reading:
|
||||
setupReadingModelData(_databasePath);
|
||||
break;
|
||||
case Label:
|
||||
setupLabelModelData(sourceId, _databasePath);
|
||||
break;
|
||||
case ReadingList:
|
||||
setupReadingListModelData(sourceId, _databasePath);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void ComicModel::remove(int row)
|
||||
{
|
||||
removeInTransaction(row);
|
||||
|
Reference in New Issue
Block a user