diff --git a/copyparty/__main__.py b/copyparty/__main__.py index 76c991fa..0fdc7836 100644 --- a/copyparty/__main__.py +++ b/copyparty/__main__.py @@ -1847,7 +1847,7 @@ def add_ui(ap, retry: int): ap2.add_argument("--ui-noacci", action="store_true", help="hide account-info in the UI (volflag=ui_noacci)") ap2.add_argument("--ui-nosrvi", action="store_true", help="hide server-info in the UI (volflag=ui_nosrvi)") ap2.add_argument("--ui-nonav", action="store_true", help="hide navpane+breadcrumbs (volflag=ui_nonav)") - ap2.add_argument("--ui-notree", action="store_true", help="hide navpane in the UI (volflag=ui_nonav)") + ap2.add_argument("--ui-notree", action="store_true", help="hide navpane in the UI (volflag=ui_notree)") ap2.add_argument("--ui-nocpla", action="store_true", help="hide cpanel-link in the UI (volflag=ui_nocpla)") ap2.add_argument("--ui-nolbar", action="store_true", help="hide link-bar in the UI (volflag=ui_nolbar)") ap2.add_argument("--ui-noctxb", action="store_true", help="hide context-buttons in the UI (volflag=ui_noctxb)") diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js index ec915778..e225941d 100644 --- a/copyparty/web/browser.js +++ b/copyparty/web/browser.js @@ -6738,10 +6738,11 @@ var treectl = (function () { aligngriditems(); }; - r.detree = function (e) { + r.detree = function (e, nw) { ev(e); entreed = false; - swrite('entreed', 'na'); + if (!nw) + swrite('entreed', 'na'); r.hide(); if (!nonav) @@ -7640,7 +7641,7 @@ var treectl = (function () { if (notree) { cs = 'na'; - r.hide(); + r.detree(null, 1); } if (cs == 'tree' || (cs != 'na' && vw >= 60))