pub fn change_page_size(increase: bool) {
    let max_page = get_max_page_number();
    let page_size = g_get_page_size();

    if increase {
        if page_size < MAX_PAGE_SIZE && max_page > 1 {
            g_set_page_size(page_size + PAGE_SIZE_DIFF)
        } else {
            return;
        }
    } else if page_size >= (PAGE_SIZE_DIFF * 2) {
        g_set_page_size(page_size - PAGE_SIZE_DIFF)
    } else {
        return;
    }

    update_header();
}
// Changes how many items appear per page
Changes how many items appear per page
Changes how many items appear per page
pub fn change_page_size(increase: bool) {
    let max_page = get_max_page_number();
    let page_size = g_get_page_size();
    if increase {
        if page_size < MAX_PAGE_SIZE && max_page > 1 {
            g_set_page_size(page_size + PAGE_SIZE_DIFF)
        } else {
            return;
        }
    } else if page_size >= (PAGE_SIZE_DIFF * 2) {
        g_set_page_size(page_size - PAGE_SIZE_DIFF)
    } else {
        return;
    }
    update_header();
}
pub fn change_page_size ( increase : bool ) { let max_page = get_max_page_number ( ) ; let page_size = g_get_page_size ( ) ; if increase { if page_size < MAX_PAGE_SIZE && max_page > 1 { g_set_page_size ( page_size + PAGE_SIZE_DIFF ) } else { return ; } } else if page_size >= ( PAGE_SIZE_DIFF * 2 ) { g_set_page_size ( page_size - PAGE_SIZE_DIFF ) } else { return ; } update_header ( ) ; }
Changes how many items appear per page
Changes how many items appear per page
increase
bool