Start implementing Ui config on top of the Config enum

This commit is contained in:
jikstra
2019-09-14 21:44:59 +02:00
parent 70a69d5313
commit 1ab014f96f
7 changed files with 68 additions and 50 deletions

View File

@@ -495,7 +495,7 @@ unsafe fn handle_cmd(line: &str, ctx: Arc<RwLock<Context>>) -> Result<ExitResult
configure(&ctx.read().unwrap());
}
"oauth2" => {
if let Some(addr) = ctx.read().unwrap().get_config(config::Config::Addr) {
if let Some(addr) = ctx.read().unwrap().get_config(&config::Config::Addr) {
let oauth2_url = dc_get_oauth2_url(
&ctx.read().unwrap(),
&addr,