mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 17:54:15 +02:00
refactoring to use the new ApplicationContext
This commit is contained in:
@@ -24,15 +24,16 @@ icon_cache = cache_factory.new(args.icon_exp)
|
||||
|
||||
context = ApplicationContext(i18n=i18n,
|
||||
http_client=HttpClient(),
|
||||
args=args,
|
||||
disk_cache=args.disk_cache,
|
||||
download_icons=args.download_icons,
|
||||
app_root_dir=ROOT_DIR,
|
||||
cache_factory=cache_factory,
|
||||
disk_loader_factory=DefaultDiskCacheLoaderFactory(disk_cache_enabled=args.disk_cache))
|
||||
|
||||
managers = extensions.load_managers(context=context)
|
||||
managers = extensions.load_managers(context=context, locale=args.locale)
|
||||
|
||||
|
||||
manager = GenericSoftwareManager(managers, context=context)
|
||||
manager = GenericSoftwareManager(managers, context=context, app_args=args)
|
||||
manager.prepare()
|
||||
|
||||
app = QApplication(sys.argv)
|
||||
|
||||
Reference in New Issue
Block a user