mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
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:
parent
d39a99c929
commit
14af136fcd
|
@ -3794,9 +3794,12 @@ class HttpCli(object):
|
||||||
if self.can_read:
|
if self.can_read:
|
||||||
th_fmt = self.uparam.get("th")
|
th_fmt = self.uparam.get("th")
|
||||||
if th_fmt is not None:
|
if th_fmt is not None:
|
||||||
|
nothumb = "dthumb" in dbv.flags
|
||||||
if is_dir:
|
if is_dir:
|
||||||
vrem = vrem.rstrip("/")
|
vrem = vrem.rstrip("/")
|
||||||
if icur and vrem:
|
if nothumb:
|
||||||
|
pass
|
||||||
|
elif icur and vrem:
|
||||||
q = "select fn from cv where rd=? and dn=?"
|
q = "select fn from cv where rd=? and dn=?"
|
||||||
crd, cdn = vrem.rsplit("/", 1) if "/" in vrem else ("", vrem)
|
crd, cdn = vrem.rsplit("/", 1) if "/" in vrem else ("", vrem)
|
||||||
# no mojibake support:
|
# no mojibake support:
|
||||||
|
@ -3822,7 +3825,7 @@ class HttpCli(object):
|
||||||
return self.tx_ico("a.folder")
|
return self.tx_ico("a.folder")
|
||||||
|
|
||||||
thp = None
|
thp = None
|
||||||
if self.thumbcli:
|
if self.thumbcli and not nothumb:
|
||||||
thp = self.thumbcli.get(dbv, vrem, int(st.st_mtime), th_fmt)
|
thp = self.thumbcli.get(dbv, vrem, int(st.st_mtime), th_fmt)
|
||||||
|
|
||||||
if thp:
|
if thp:
|
||||||
|
|
Loading…
Reference in a new issue