update due yad changes

This commit is contained in:
2026-08-11 00:29:23 +02:00
parent f833f03f59
commit fe2bc4694b

View File

@@ -105,7 +105,7 @@ clearfilter(){
sd "filter.*$" "filter=" ${CFG_FILE} sd "filter.*$" "filter=" ${CFG_FILE}
} }
addtask(){ addtask(){
task=$(yad --width=400 --center --border=40 --undecorated --no-buttons --close-on-unfocus --text-align=center --text "<big><b>$_ADD_NEWTASK</b></big>\n <b>Enter</b> - $_ADD | <b>Esc</b> - $_ABORT" --entry --entry-text="$_TASKDESC" --ricon=gtk-clear) task=$(yad --width=400 --center --borders=40 --undecorated --no-buttons --close-on-unfocus --text-align=center --text "<big><b>$_ADD_NEWTASK</b></big>\n <b>Enter</b> - $_ADD | <b>Esc</b> - $_ABORT" --entry --entry-text="$_TASKDESC" --ricon=gtk-clear)
if [ ! -z "${task}" ];then if [ ! -z "${task}" ];then
#notify-send.sh "okej" "${task}" #notify-send.sh "okej" "${task}"
pass_to_todo_sh add "${task}" pass_to_todo_sh add "${task}"
@@ -114,7 +114,7 @@ else
fi fi
} }
addfile(){ addfile(){
file=$(yad --skip-taskbar --width=400 --center --border=40 --undecorated --no-buttons --text-align=center --text "$_ADD_NEWTODOLIST" --entry --entry-text="$_TODONAME" --ricon=gtk-clear) file=$(yad --skip-taskbar --width=400 --center --borders=40 --undecorated --no-buttons --text-align=center --text "$_ADD_NEWTODOLIST" --entry --entry-text="$_TODONAME" --ricon=gtk-clear)
if [ ! -z "${file}" ];then if [ ! -z "${file}" ];then
#Remove spaces #Remove spaces
file=${file// /_} file=${file// /_}