Cache liveries at startup

This commit is contained in:
Raffson 2023-07-15 17:46:31 +02:00
parent 21eff6cb87
commit 6c87421c26
No known key found for this signature in database
GPG Key ID: B0402B2C9B764D99

View File

@ -12,6 +12,7 @@ from PySide2 import QtWidgets
from PySide2.QtCore import Qt
from PySide2.QtGui import QPixmap
from PySide2.QtWidgets import QApplication, QCheckBox, QSplashScreen
from dcs.liveries.liverycache import LiveryCache
from dcs.payloads import PayloadDirectories
from game import Game, VERSION, logging_config, persistency
@ -434,6 +435,8 @@ def main():
load_mods()
LiveryCache.cache()
if args.subcommand == "new-game":
with logged_duration("New game creation"):
game = create_game(