mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-31 03:39:57 +02:00
Increase comments per page to 20
This commit is contained in:
@@ -61,7 +61,7 @@ void * PreviewModel::updateSaveDataT()
|
|||||||
|
|
||||||
void * PreviewModel::updateSaveCommentsT()
|
void * PreviewModel::updateSaveCommentsT()
|
||||||
{
|
{
|
||||||
std::vector<SaveComment*> * tempComments = Client::Ref().GetComments(tSaveID, (commentsPageNumber-1)*10, 10);
|
std::vector<SaveComment*> * tempComments = Client::Ref().GetComments(tSaveID, (commentsPageNumber-1)*20, 20);
|
||||||
updateSaveCommentsFinished = true;
|
updateSaveCommentsFinished = true;
|
||||||
return tempComments;
|
return tempComments;
|
||||||
}
|
}
|
||||||
@@ -142,7 +142,7 @@ int PreviewModel::GetCommentsPageNum()
|
|||||||
|
|
||||||
int PreviewModel::GetCommentsPageCount()
|
int PreviewModel::GetCommentsPageCount()
|
||||||
{
|
{
|
||||||
return max(1, (int)(ceil(commentsTotal/10)));
|
return max(1, (int)(ceil(commentsTotal/20)));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PreviewModel::GetCommentsLoaded()
|
bool PreviewModel::GetCommentsLoaded()
|
||||||
|
Reference in New Issue
Block a user