force generic "folder" icon when image-thumbs are disabled

fixes the "unk" that would be shown if a subfolder contains images
This commit is contained in:
ed 2024-02-21 19:19:30 +00:00
parent d39a99c929
commit 14af136fcd

View file

@ -3794,9 +3794,12 @@ class HttpCli(object):
if self.can_read:
th_fmt = self.uparam.get("th")
if th_fmt is not None:
nothumb = "dthumb" in dbv.flags
if is_dir:
vrem = vrem.rstrip("/")
if icur and vrem:
if nothumb:
pass
elif icur and vrem:
q = "select fn from cv where rd=? and dn=?"
crd, cdn = vrem.rsplit("/", 1) if "/" in vrem else ("", vrem)
# no mojibake support:
@ -3822,7 +3825,7 @@ class HttpCli(object):
return self.tx_ico("a.folder")
thp = None
if self.thumbcli:
if self.thumbcli and not nothumb:
thp = self.thumbcli.get(dbv, vrem, int(st.st_mtime), th_fmt)
if thp: