mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-23 21:51:56 +00:00
Remove accidentally commited config file
This commit is contained in:
parent
78b7c3faa1
commit
a0752ae35f
|
@ -1 +0,0 @@
|
||||||
skip_confirmation = true
|
|
|
@ -22,7 +22,7 @@ pub struct ConfigValues {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Config {
|
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) {
|
let content = match fs::read_to_string(path) {
|
||||||
Ok(content) => content,
|
Ok(content) => content,
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
|
|
|
@ -131,7 +131,7 @@ impl AppState {
|
||||||
state.update_items();
|
state.update_items();
|
||||||
|
|
||||||
if let Some(config_path) = args.config {
|
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);
|
state.apply_config(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user