fix(channels): better way to load the configuration

This commit is contained in:
lalvarezt 2025-05-22 14:06:55 +02:00
parent 8e987e1cda
commit 66280b749c

View File

@ -40,7 +40,7 @@ pub struct AppConfig {
} }
pub fn default_channel() -> String { 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() config.application.default_channel.to_string()
} }