Remove: preview for persist mode

This commit is contained in:
KR
2022-06-14 00:54:13 +05:45
committed by GitHub
parent 0c65011821
commit f4200533da

View File

@@ -202,13 +202,15 @@ def browse_options(session, user_prompt, *, persist=False, persist_with=None):
options = { options = {
"[d]ownload": UserBrowseSelection.DOWNLOAD, "[d]ownload": UserBrowseSelection.DOWNLOAD,
"p[r]eview": UserBrowseSelection.PREVIEW,
} }
if not persist: if not persist:
options[ options.update(
"[p]ersist selection for next in queue" {
] = UserBrowseSelection.PERSIST_SELECTION "[p]ersist selection for next in queue": UserBrowseSelection.PERSIST_SELECTION,
"p[r]eview": UserBrowseSelection.PREVIEW,
}
)
if pyperclip is not None: if pyperclip is not None:
options["[c]opy to clipboard"] = UserBrowseSelection.COPY_TO_CLIPBOARD options["[c]opy to clipboard"] = UserBrowseSelection.COPY_TO_CLIPBOARD
@@ -276,5 +278,6 @@ def __main__(query=None):
persist_with=persist_with, persist_with=persist_with,
) )
if __name__ == "__main__": if __name__ == "__main__":
__main__(*sys.argv[1:]) __main__(*sys.argv[1:])