add warning icon on missing permissions

This commit is contained in:
panni
2017-08-22 04:24:37 +02:00
parent 5089708e2d
commit 0e4a936176
3 changed files with 4 additions and 1 deletions
+4 -1
View File
@@ -12,7 +12,10 @@ from subzero.constants import ICON_SUB, ICON
from support.scheduler import scheduler
default_thumb = R(ICON_SUB)
main_icon = ICON if not config.is_development else "icon-dev.jpg"
main_icon = ICON if config.permissions_ok else "icon-default_error.jpg"
if config.is_development:
main_icon = "icon-dev.jpg" if config.permissions_ok else "icon-dev_error.jpg"
# noinspection PyUnboundLocalVariable
route = enable_channel_wrapper(route)
Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB