fix(dashboard): only check for piped stdin when in TUI. Ignore GUIs

This commit is contained in:
Folke Lemaitre 2024-11-19 09:45:24 +01:00
parent c15953ee88
commit 3311d75f89
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -1037,8 +1037,8 @@ function M.setup()
return
end
-- don't open the dashboard if input is piped
if uis[1].stdin_tty == false then
-- don't open the dashboard if in TUI and input is piped
if uis[1].stdout_tty and not uis[1].stdin_tty then
M.status.reason = "stdin is not a tty"
return
end