Small TabConfig clean ups

* Rename `config::Tab` to `TabConfig`
* Use the loaded tab config instead of the default (oops)
This commit is contained in:
Josh Megnauth 2024-02-11 01:16:51 -05:00 committed by Jeremy Soller
parent bc5b46d552
commit e697e96afe
4 changed files with 16 additions and 12 deletions

View file

@ -23,7 +23,7 @@ use std::{
time::{Duration, Instant},
};
use crate::{config::Tab as TabConfig, fl, home_dir, mime_icon::mime_icon};
use crate::{config::TabConfig, fl, home_dir, mime_icon::mime_icon};
const DOUBLE_CLICK_DURATION: Duration = Duration::from_millis(500);
//TODO: configurable
@ -1068,7 +1068,7 @@ mod tests {
read_dir_sorted, simple_fs, sort_files, tab_click_new, NAME_LEN, NUM_DIRS, NUM_FILES,
NUM_HIDDEN, NUM_NESTED,
},
config::Tab as TabConfig,
config::TabConfig,
};
// Boilerplate for tab tests. Checks if simulated clicks selected items.