Add startup message

This commit is contained in:
--unset 2024-05-09 17:36:56 -04:00
parent 29fc1f6f1f
commit 47a1e33030
3 changed files with 6 additions and 2 deletions

View File

@ -20,7 +20,8 @@
data-internet="{{ translate('startup', 'internet', data['lang']) }}" data-internet="{{ translate('startup', 'internet', data['lang']) }}"
data-tasks="{{ translate('startup', 'tasks', data['lang']) }}" data-tasks="{{ translate('startup', 'tasks', data['lang']) }}"
data-internals="{{ translate('startup', 'internals', data['lang']) }}" data-internals="{{ translate('startup', 'internals', data['lang']) }}"
data-almost="{{ translate('startup', 'almost', data['lang']) }}"> data-almost="{{ translate('startup', 'almost', data['lang']) }}"
data-cache="{{ translate('startup', 'cache', data['lang'])}}">
{{ translate('startup', 'starting', data['lang']) }}</h2> {{ translate('startup', 'starting', data['lang']) }}</h2>
</div> </div>

View File

@ -600,6 +600,7 @@
}, },
"startup": { "startup": {
"almost": "Finishing up. Hang on tight...", "almost": "Finishing up. Hang on tight...",
"cache": "Refreshing Big Bucket cache file",
"internals": "Configuring and starting Crafty's internal components", "internals": "Configuring and starting Crafty's internal components",
"internet": "Checking for internet connection", "internet": "Checking for internet connection",
"server": "Initializing ", "server": "Initializing ",

View File

@ -212,6 +212,8 @@ def setup_starter():
time.sleep(2) time.sleep(2)
controller_setup_thread.start() controller_setup_thread.start()
web_sock.broadcast("update", {"section": "cache"})
controller.big_bucket.manual_refresh_cache()
# Wait for the setup threads to finish # Wait for the setup threads to finish
web_sock.broadcast( web_sock.broadcast(
"update", "update",