From b8cdea97598c71542836bbd3bef78f526221839a Mon Sep 17 00:00:00 2001 From: Jack Wills <32690432+mrjackwills@users.noreply.github.com> Date: Tue, 17 Jun 2025 22:08:50 +0000 Subject: [PATCH] docs: example config --- example_config/example.config.jsonc | 2 +- example_config/example.config.toml | 2 +- src/config/config.toml | 2 +- src/ui/gui_state.rs | 3 ++- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/example_config/example.config.jsonc b/example_config/example.config.jsonc index eb7f163..230e982 100644 --- a/example_config/example.config.jsonc +++ b/example_config/example.config.jsonc @@ -29,7 +29,7 @@ // "save_dir": "$HOME", // Force use of docker cli when execing into containers, honestly mostly pointless "use_cli": false, - // Show the logs section - this can be changed during operation with the container_height_decrease / container_height_increase keys + // Show the logs section - this can be changed during operation with the log_section_toggle key "show_logs": true, ////////////////// // Custom Keymap // diff --git a/example_config/example.config.toml b/example_config/example.config.toml index 86753aa..3c71386 100644 --- a/example_config/example.config.toml +++ b/example_config/example.config.toml @@ -40,7 +40,7 @@ timestamp_format = "%Y-%m-%dT%H:%M:%S.%8f" # Force use of docker cli when execing into containers, honestly mostly pointless use_cli = false -# Show the logs section - this can be changed during operation with the container_height_decrease / container_height_increase keys +# Show the logs section - this can be changed during operation with the log_section_toggle key show_logs = true ################# diff --git a/src/config/config.toml b/src/config/config.toml index 9ccba74..457064a 100644 --- a/src/config/config.toml +++ b/src/config/config.toml @@ -40,7 +40,7 @@ timestamp_format = "%Y-%m-%dT%H:%M:%S.%8f" # Force use of docker cli when execing into containers, honestly mostly pointless use_cli = false -# Show the logs section - this can be changed during operation with the container_height_decrease / container_height_increase keys +# Show the logs section - this can be changed during operation with the log_section_toggle key show_logs = true ################# diff --git a/src/ui/gui_state.rs b/src/ui/gui_state.rs index 0d9cec6..7e77732 100644 --- a/src/ui/gui_state.rs +++ b/src/ui/gui_state.rs @@ -244,7 +244,8 @@ impl GuiState { self.rerender.update(); } - /// Set the log_height to zero, used if show_logs=false in the config file + /// Set the log_height to zero, for now only used by tests + #[cfg(test)] pub const fn log_height_zero(&mut self) { self.log_height = 0; }