Implemented missing setting relation

This commit is contained in:
Maximilian Giller 2019-05-06 16:12:18 +02:00
parent b01942b39d
commit a7c7a3e553

View file

@ -1,6 +1,6 @@
from PIL import ImageDraw, Image
from TextDesign import TextDesign
from settings import week_starts_on, owm_paid_subscription
from settings import week_starts_on, owm_paid_subscription, general_settings
from DesignEntity import DesignEntity
from datetime import datetime
from Assets import weathericons, wpath, fonts, colors, defaultfontsize
@ -41,7 +41,7 @@ class DayRowDesign (DesignEntity):
number_width = daynumber_y_size[0] * self.size[1]
ypos = eventlist_ypos * self.size[1]
weather_width = 0
if owm_paid_subscription:
if owm_paid_subscription and general_settings["weather-info"]:
weather_width = weathericon_height * self.size[1]
pos = (number_width + eventlist_xpadding, ypos)
size = (self.size[0] - pos[0] - weather_width, self.size[1] - pos[1])