fix ui-notree; closes #1123

This commit is contained in:
ed
2025-12-23 22:49:04 +00:00
parent e0845b2363
commit 4c73704ce7
2 changed files with 5 additions and 4 deletions

View File

@@ -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)")

View File

@@ -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))