1 parent d2a6198 commit bb5aa39Copy full SHA for bb5aa39
1 file changed
gui.py
@@ -1464,7 +1464,15 @@ def _rebuild() -> None:
1464
new = _build_pages()
1465
pages.clear()
1466
pages.extend(new)
1467
- page_content.content = pages[rail.selected_index]
+ if COURSES and rail.selected_index == 6:
1468
+ # Refreshed from Settings and courses are now available —
1469
+ # jump to Dashboard so the user immediately sees the result.
1470
+ rail.selected_index = 0
1471
+ page_content.content = pages[0]
1472
+ elif rail.selected_index != 6:
1473
+ # Normal navigation rebuild — update current page.
1474
+ page_content.content = pages[rail.selected_index]
1475
+ # If still on Settings with no courses, leave content alone (avoids blank render).
1476
page.update()
1477
1478
_rebuild_ref[0] = _rebuild
0 commit comments