mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-06 03:25:23 +00:00
fix(channels): better way to load the configuration
This commit is contained in:
parent
8e987e1cda
commit
66280b749c
@ -40,7 +40,7 @@ pub struct AppConfig {
|
||||
}
|
||||
|
||||
pub fn default_channel() -> String {
|
||||
let config = Config::load_user_config(&get_config_dir()).unwrap();
|
||||
let config = Config::new(&ConfigEnv::init().unwrap()).unwrap();
|
||||
config.application.default_channel.to_string()
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user