When background_image glob does not match anything use the literal path for backwards compat
This commit is contained in:
parent
bfc4947cac
commit
270c553af6
1 changed files with 1 additions and 1 deletions
|
|
@ -861,7 +861,7 @@ def background_images(x: str) -> tuple[str, ...]:
|
|||
from glob import glob
|
||||
x = resolve_abs_or_config_path(x, None)
|
||||
return tuple(x for x in sorted(glob(x)) if x.rpartition('.')[-1].lower() in (
|
||||
'jpeg', 'jpg', 'png', 'webp', 'tiff', 'bmp', 'gif'))
|
||||
'jpeg', 'jpg', 'png', 'webp', 'tif', 'tiff', 'bmp', 'gif')) or (x,)
|
||||
|
||||
|
||||
def filter_notification(val: str, current_val: dict[str, str]) -> Iterable[tuple[str, str]]:
|
||||
|
|
|
|||
Loading…
Reference in a new issue