mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-01 06:00:15 +02:00
Reset page on sort change
This commit is contained in:
@@ -34,9 +34,9 @@ public:
|
||||
int GetPageCount() { return max(1, (int)(ceil(resultCount/16))); }
|
||||
int GetPageNum() { return currentPage; }
|
||||
std::string GetLastQuery() { return lastQuery; }
|
||||
void SetSort(string sort) { currentSort = sort; UpdateSaveList(currentPage, lastQuery); notifySortChanged(); }
|
||||
void SetSort(string sort) { currentSort = sort; UpdateSaveList(1, lastQuery); notifySortChanged(); }
|
||||
string GetSort() { return currentSort; }
|
||||
void SetShowOwn(bool show) { showOwn = show; UpdateSaveList(currentPage, lastQuery); notifyShowOwnChanged(); }
|
||||
void SetShowOwn(bool show) { showOwn = show; UpdateSaveList(1, lastQuery); notifyShowOwnChanged(); }
|
||||
bool GetShowOwn() { return showOwn; }
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user