2025-01-24 10:09:12 +01:00
|
|
|
from .instructions_list import BrickInstructionsList
|
|
|
|
from .retired_list import BrickRetiredList
|
2025-01-24 10:36:24 +01:00
|
|
|
from .set_checkbox_list import BrickSetCheckboxList
|
2025-01-24 10:09:12 +01:00
|
|
|
from .theme_list import BrickThemeList
|
|
|
|
|
|
|
|
|
|
|
|
# Reload everything related to a database after an operation
|
|
|
|
def reload() -> None:
|
|
|
|
# Failsafe
|
|
|
|
try:
|
|
|
|
# Reload the instructions
|
|
|
|
BrickInstructionsList(force=True)
|
|
|
|
|
2025-01-24 10:36:24 +01:00
|
|
|
# Reload the checkboxes
|
|
|
|
BrickSetCheckboxList(force=True)
|
|
|
|
|
2025-01-24 10:09:12 +01:00
|
|
|
# Reload retired sets
|
|
|
|
BrickRetiredList(force=True)
|
|
|
|
|
|
|
|
# Reload themes
|
|
|
|
BrickThemeList(force=True)
|
|
|
|
except Exception:
|
|
|
|
pass
|