@@ -641,7 +641,7 @@ def show_page(page: int = 0) -> None:
641641
642642 # display default details
643643 for index in range (start , end ):
644- item_group = item_grid .get_content ((index % PAGE_COLUMNS , index // PAGE_COLUMNS ))
644+ item_group = item_grid .get_content ((index % PAGE_COLUMNS , ( index // PAGE_COLUMNS ) % PAGE_ROWS ))
645645 item_icon , item_installed , item_title , item_author , item_description = item_group
646646
647647 full_name = applications [selected_category ][index ]
@@ -668,7 +668,7 @@ def show_page(page: int = 0) -> None:
668668
669669 # read external application data
670670 for index in range (start , end ):
671- item_group = item_grid .get_content ((index % PAGE_COLUMNS , index // PAGE_COLUMNS ))
671+ item_group = item_grid .get_content ((index % PAGE_COLUMNS , ( index // PAGE_COLUMNS ) % PAGE_ROWS ))
672672 item_icon , item_installed , item_title , item_author , item_description = item_group
673673
674674 full_name = applications [selected_category ][index ]
@@ -905,8 +905,7 @@ def select_application(index: int|tuple) -> None:
905905 arrow_group .hidden = True
906906
907907 # populate dialog info
908- page_index = index % PAGE_SIZE
909- item_group = item_grid .get_content ((page_index % PAGE_COLUMNS , page_index // PAGE_COLUMNS ))
908+ item_group = item_grid .get_content ((index % PAGE_COLUMNS , (index // PAGE_COLUMNS ) % PAGE_ROWS ))
910909 item_icon , item_installed , item_title , item_author , item_description = item_group
911910
912911 path = get_application_path (repo_name )
0 commit comments