Silence complaints about wid file not existing

Addresses #29.
break
noctuid 8 years ago
parent 914c535cda
commit e6e52dcf4d

@ -586,7 +586,8 @@ wid_toggle() {
fi fi
# get saved window id if already created # get saved window id if already created
local wid exists visibility local wid exists visibility
wid=$(< "$MUTDROP_PATH/$program$num") 2> /dev/null # cat to silence error
wid=$(cat "$MUTDROP_PATH/$program$num" 2> /dev/null)
exists=true exists=true
if [[ -n $wid ]]; then if [[ -n $wid ]]; then
visibility=$(get_visibility "$wid") visibility=$(get_visibility "$wid")

Loading…
Cancel
Save