diff --git a/config.toml b/config.toml deleted file mode 100644 index 67b67a79..00000000 --- a/config.toml +++ /dev/null @@ -1 +0,0 @@ -skip_confirmation = true diff --git a/core/src/config.rs b/core/src/config.rs index a540d5c8..1c2b1de0 100644 --- a/core/src/config.rs +++ b/core/src/config.rs @@ -22,7 +22,7 @@ pub struct ConfigValues { } impl Config { - pub fn new(path: &Path, tabs: &TabList) -> ConfigValues { + pub fn read_config(path: &Path, tabs: &TabList) -> ConfigValues { let content = match fs::read_to_string(path) { Ok(content) => content, Err(e) => { diff --git a/tui/src/state.rs b/tui/src/state.rs index 993dfa13..cec9cc3c 100644 --- a/tui/src/state.rs +++ b/tui/src/state.rs @@ -131,7 +131,7 @@ impl AppState { state.update_items(); if let Some(config_path) = args.config { - let config = Config::new(&config_path, &state.tabs); + let config = Config::read_config(&config_path, &state.tabs); state.apply_config(config); }