add message back to download prompt

This commit is contained in:
ksyasuda 2022-01-23 16:49:36 -08:00
parent 3cec4558d2
commit bf4cd37b32
2 changed files with 6 additions and 4 deletions

View File

@ -423,10 +423,9 @@ get_search_query() {
ORDER BY search_date DESC;"
msg="Choose from list of searched anime below, or enter a unique name of an anime to search for"
span="$(generate_span "$msg")"
if [ "$is_rofi" -eq 1 ]; then
query=$(rofi -dpi "$DPI" -dmenu -l 15 -p "Search Anime:" \
-mesg "$span" \
-mesg "$(generate_span "$msg")" \
-config "$ROFI_CFG" < <(run_stmt "$stmt"))
# Remove the id from the query
query="${query//[1-9]*\. /}"

View File

@ -242,8 +242,11 @@ main() {
# download
# ---------------------------------------------------------------------------
lg "Download anime"
dl_dir=$(rofi -dpi "$DPI" -dmenu -config "$CFG_FILE" \
-l 1 -p "Enter download dir:")
dl_dir=$(
rofi -dpi "$DPI" -dmenu -config "$CFG_FILE" \
-mesg "$(generate_span "Enter the path to the download directory, or leave blank to go with the default: $HOME/Videos/sauce/")" \
-l 1 -p "Enter download dir:"
)
# if dl_dir is none set to current directory
[ "$dl_dir" == "" ] && dl_dir="$DEFAULT_DOWNLOAD"
run -d "$dl_dir"