aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2021-04-28 21:13:19 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2021-05-04 20:48:16 +0530
commit42079f8d048fc2ec4dad9b135efb93e31cf2ecb6 (patch)
tree0b976b61742f205601d44d68cdc269f50acb62d2 /src/client
parentUse interprocess crate for IPC (diff)
downloadsl0ppij-42079f8d048fc2ec4dad9b135efb93e31cf2ecb6.tar.gz
sl0ppij-42079f8d048fc2ec4dad9b135efb93e31cf2ecb6.tar.xz
sl0ppij-42079f8d048fc2ec4dad9b135efb93e31cf2ecb6.zip
Refactor CommandIsExecuting to have a single variant
Diffstat (limited to 'src/client')
-rw-r--r--src/client/mod.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/client/mod.rs b/src/client/mod.rs
index 0a0f0793..bbde8c35 100644
--- a/src/client/mod.rs
+++ b/src/client/mod.rs
@@ -25,9 +25,7 @@ use crate::server::ServerInstruction;
pub enum ClientInstruction {
Error(String),
Render(Option<String>),
- DoneClosingPane,
- DoneOpeningNewPane,
- DoneUpdatingTabs,
+ UnblockInputThread,
Exit,
}
@@ -157,9 +155,9 @@ pub fn start_client(mut os_input: Box<dyn ClientOsApi>, opts: CliArgs) {
.expect("cannot write to stdout");
stdout.flush().expect("could not flush");
}
- ClientInstruction::DoneClosingPane => command_is_executing.done_closing_pane(),
- ClientInstruction::DoneOpeningNewPane => command_is_executing.done_opening_new_pane(),
- ClientInstruction::DoneUpdatingTabs => command_is_executing.done_updating_tabs(),
+ ClientInstruction::UnblockInputThread => {
+ command_is_executing.unblock_input_thread();
+ }
}
}