Skip to content

Commit 5815480

Browse files
authored
Merge pull request #1939 from oliv3r/notification_error
Fixed: Use Info notification for empty folder lists
2 parents 96dd178 + b8b6a99 commit 5815480

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

resources/lib/actions/folderaction.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,11 @@ def __show_empty_information(self, items, favs=False):
183183
else:
184184
ok = True
185185

186-
XbmcWrapper.show_notification(LanguageHelper.get_localized_string(LanguageHelper.ErrorId),
187-
title, XbmcWrapper.Error, 2500)
186+
notification_type = XbmcWrapper.Error if behaviour == "error" else XbmcWrapper.Info
187+
notification_title = LanguageHelper.get_localized_string(
188+
LanguageHelper.ErrorId) if behaviour == "error" else None
189+
XbmcWrapper.show_notification(notification_title,
190+
title, notification_type, 2500)
188191
return ok
189192

190193
def __update_artwork(self, media_item, channel, use_thumbs_as_fanart):

0 commit comments

Comments
 (0)