Displaying toast when map import completes/fails.

This commit is contained in:
Roland 2023-08-22 12:48:33 -06:00
parent 8ba5b63221
commit 67eebbd084
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 9 additions and 1 deletions

View file

@ -44,6 +44,14 @@ function handleEvents(events) {
eventToast('Downloads Disabled', message, 'info');
}
if (event === 'map_import_complete') {
eventToast('Map import completed', message, 'info');
}
if (event === 'map_import_failed') {
eventToast('Map import failed', message, 'error');
}
if (event === 'user_notify_message') {
console.log(message, url);
eventToast(

View file

@ -1304,7 +1304,7 @@ def background_task(coro) -> Task:
try:
await coro
except Exception as e:
logger.error('Background task had error', exc_info=e)
logger.error('Background task had error:', exc_info=e)
task = asyncio.create_task(error_logger())
BACKGROUND_TASKS.add(task)