Update stockTicker.py

news bug fix
This commit is contained in:
Neythen Treloar 2022-02-28 11:21:46 +00:00 committed by GitHub
parent de4dbe2346
commit 5b5fafae1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1384,6 +1384,8 @@ class StockTicker():
if all_settings['title']:
title_img = self.openImage('feature_titles/news.png')
image_list = [title_img]
else:
image_list = []
headline_font = ImageFont.load("./fonts/6x13.pil")
source_font = ImageFont.load("./fonts/6x13.pil")
@ -1461,6 +1463,8 @@ class StockTicker():
if all_settings['title']:
title_img = self.openImage('feature_titles/small_feature_titles/news.png')
image_list = [title_img]
else:
image_list = []
headline_font = ImageFont.load("./fonts/6x13.pil")
source_font = ImageFont.load("./fonts/6x13.pil")