HOTFIX: do not get os input unless we're starting the app
This commit is contained in:
parent
8e6dfded7a
commit
b66dffe5cf
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,6 @@ fn delete_log_files() -> std::io::Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
let os_input = get_os_input();
|
|
||||||
let opts = Opt::from_args();
|
let opts = Opt::from_args();
|
||||||
if opts.split.is_some() {
|
if opts.split.is_some() {
|
||||||
match opts.split {
|
match opts.split {
|
||||||
|
|
@ -89,6 +88,7 @@ pub fn main() {
|
||||||
let api_command = bincode::serialize(&ApiCommand::OpenFile(file_to_open)).unwrap();
|
let api_command = bincode::serialize(&ApiCommand::OpenFile(file_to_open)).unwrap();
|
||||||
stream.write_all(&api_command).unwrap();
|
stream.write_all(&api_command).unwrap();
|
||||||
} else {
|
} else {
|
||||||
|
let os_input = get_os_input();
|
||||||
start(Box::new(os_input), opts);
|
start(Box::new(os_input), opts);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue