minor config optimization

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Cobaltboy
2026-02-04 13:41:19 +05:30
committed by GitHub
parent 2944ad9b35
commit 0d2ddb1b8b

View File

@@ -686,7 +686,8 @@ async def scan_platforms(
log.info(f"{emoji.EMOJI_CHECK_MARK} Scan completed")
# Export gamelist.xml if enabled in config
if cm.get_config().GAMELIST_AUTO_EXPORT_ON_SCAN:
config = cm.get_config()
if config.GAMELIST_AUTO_EXPORT_ON_SCAN:
log.info("Auto-exporting gamelist.xml for all platforms...")
gamelist_exporter = GamelistExporter(local_export=True)
platforms_by_slug = {p.fs_slug: p for p in db_platform_handler.get_platforms()}