diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-05-12 13:32:39 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-05-12 15:27:28 +0200 |
| commit | 776a2c5151f768bfa40fda7471258527c106dd85 (patch) | |
| tree | ea9c4f5b93f5f9ca9a517dd146f69b1817bc0a60 /src/client | |
| parent | docs(changelog): compatibility update (diff) | |
| download | sl0ppij-776a2c5151f768bfa40fda7471258527c106dd85.tar.gz sl0ppij-776a2c5151f768bfa40fda7471258527c106dd85.tar.xz sl0ppij-776a2c5151f768bfa40fda7471258527c106dd85.zip | |
Fix Simplified Ui
Propagate the config now, in all the places, as opposed to
fallback to a default.
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/mod.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs index 5fb40096..3dfb24aa 100644 --- a/src/client/mod.rs +++ b/src/client/mod.rs @@ -15,7 +15,7 @@ use crate::common::{ errors::{ClientContext, ContextType}, input::config::Config, input::handler::input_loop, - input::options::{ConfigOptions, Options}, + input::options::Options, os_input_output::ClientOsApi, thread_bus::{SenderType, SenderWithContext, SyncChannelWithContext}, }; @@ -46,8 +46,7 @@ pub fn start_client(mut os_input: Box<dyn ClientOsApi>, opts: CliArgs, config: C let mut command_is_executing = CommandIsExecuting::new(); - let config_options: ConfigOptions = - Options::from_cli(&config.options, opts.option.clone()).into(); + let config_options = Options::from_cli(&config.options, opts.option.clone()); let full_screen_ws = os_input.get_terminal_size_using_fd(0); os_input.connect_to_server(); |
