@ed: invert gsel logic

This commit is contained in:
Til Schmitter 2026-05-12 00:19:01 +02:00
parent 7e4edb8cc2
commit 0debe7985f
2 changed files with 6 additions and 2 deletions

View file

@ -1903,7 +1903,7 @@ def add_ui(ap, retry: int):
THEMES = 10
ap2 = ap.add_argument_group("ui options")
ap2.add_argument("--grid", action="store_true", help="show grid/thumbnails by default (volflag=grid)")
ap2.add_argument("--gsel", action="store_true", help="select files in grid by ctrl-click (volflag=gsel)")
ap2.add_argument("--no-gsel", action="store_true", help="ctrl-click in gridview will open-in-new-tab instead of select-file (volflag=-gsel)")
ap2.add_argument("--localtime", action="store_true", help="default to local timezone instead of UTC")
ap2.add_argument("--ui-filesz", metavar="FMT", type=u, default="6", help="default filesize format; one of these: 0, 1, 2, 2c, 3, 3c, 4, 4c, 5, 5c, 6, 6c, 7, 7c, fuzzy (see UI)")
ap2.add_argument("--gauto", metavar="PERCENT", type=int, default=0, help="switch to gridview if more than \033[33mPERCENT\033[0m of files are pics/vids; 0=disabled")
@ -1966,6 +1966,7 @@ def add_ui(ap, retry: int):
ap2.add_argument("--ui-noctxb", action="store_true", help="hide context-buttons in the UI (volflag=ui_noctxb)")
ap2.add_argument("--ui-norepl", action="store_true", help="hide repl-button in the UI (volflag=ui_norepl)")
ap2.add_argument("--have-unlistc", action="store_true", help=argparse.SUPPRESS)
ap2.add_argument("--gsel", action="store_true", default=True, help=argparse.SUPPRESS)
def add_debug(ap):

View file

@ -450,7 +450,10 @@ if ANYWIN:
IMPLICATIONS.extend([["z", "zm4"]])
UNPLICATIONS = [["no_dav", "daw"]]
UNPLICATIONS = [
["no_dav", "daw"],
["no_gsel", "gsel"],
]
DAV_ALLPROP_L = [