Fix bug where wf-shadow-tui would display the same menu after starting/ending a session

Signed-off-by: Skylar "The Cobra" Widulski <cobra@vern.cc>
This commit is contained in:
Skylar "The Cobra" Widulski 2023-05-17 18:41:36 -04:00
parent 0583dfc3f7
commit a85754ea38
Signed by: cobra
GPG Key ID: 4FD8F812083FF6F9
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,7 @@
# this program. If not, see <https://www.gnu.org/licenses/>.
#
VER="v1.3.0"
VER="v1.3.1"
RUNTIME="${XDG_RUNTIME_DIR:-/run}/wf-shadow"
CONFIG="${WF_SHADOW_CONFIG:-${XDG_CONFIG_HOME:-$HOME/.config}/wf-shadow/config.sh}"
@ -113,9 +113,11 @@ get_action_wrap() {
case "$ACTION" in
Start)
wf-shadow --start "$OUTPUT" &>/dev/null & disown
sleep 0.1
get_action_wrap ;;
End)
wf-shadow --end "$OUTPUT"
sleep 0.1
get_action_wrap ;;
Record) get_seconds_wrap ;;
esac