debug: test prints for statistics

This commit is contained in:
wolflu05 2023-07-12 13:59:27 +00:00
parent a6dc26335f
commit 39907f66fc
No known key found for this signature in database
GPG Key ID: 9099EFC7C5EB963C
1 changed files with 4 additions and 0 deletions

View File

@ -18,10 +18,14 @@ class PartConfig(AppConfig):
def ready(self):
"""This function is called whenever the Part app is loaded."""
# skip loading if plugins are not loaded or we run in a background thread
print("LOAD_BEFORE")
if not isPluginRegistryLoaded() or not isInMainThread():
return
print("LOAD_AFTER")
if canAppAccessDatabase():
print("LOAD_DB_ACCESS")
self.update_trackable_status()
self.reset_part_pricing_flags()