set timeout for directory command

initialise current_directory to empty value if the request fails.

patch bump
This commit is contained in:
2025-06-30 06:17:05 +01:00
parent 6035e09e43
commit 8813c25819
3 changed files with 3 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ class SimpleRecorderWindow(fsg.Window):
current_directory = resp.record_directory
except (ConnectionRefusedError, TimeoutError):
status_message = "Failed to connect to OBS. Is it running?"
current_directory = ""
recorder_layout = [
[fsg.Text("Enter recording filename:", key="-PROMPT-")],