aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorDante Pippi <6619666+dantepippi@users.noreply.github.com>2021-04-27 15:56:42 -0300
committerDante Pippi <6619666+dantepippi@users.noreply.github.com>2021-04-28 11:16:06 -0300
commit62662464e3814bde666ec826850c9d87d4af2639 (patch)
tree5b77ff014c756e78ed9850a25cdb78714b570758 /src/common
parentcargo fmt (diff)
downloadsl0ppij-62662464e3814bde666ec826850c9d87d4af2639.tar.gz
sl0ppij-62662464e3814bde666ec826850c9d87d4af2639.tar.xz
sl0ppij-62662464e3814bde666ec826850c9d87d4af2639.zip
Including text on tab name to let users know sync is on.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/mod.rs1
-rw-r--r--src/common/screen.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/common/mod.rs b/src/common/mod.rs
index d829451e..0a04e3ff 100644
--- a/src/common/mod.rs
+++ b/src/common/mod.rs
@@ -450,6 +450,7 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) {
.get_active_tab_mut()
.unwrap()
.toggle_sync_panes_is_active();
+ screen.update_tabs();
}
ScreenInstruction::Quit => {
break;
diff --git a/src/common/screen.rs b/src/common/screen.rs
index 75c0a805..bc68f2ea 100644
--- a/src/common/screen.rs
+++ b/src/common/screen.rs
@@ -286,7 +286,7 @@ impl Screen {
self.update_tabs();
}
- fn update_tabs(&self) {
+ pub fn update_tabs(&self) {
let mut tab_data = vec![];
let active_tab_index = self.active_tab_index.unwrap();
for tab in self.tabs.values() {
@@ -294,6 +294,7 @@ impl Screen {
position: tab.position,
name: tab.name.clone(),
active: active_tab_index == tab.index,
+ is_sync_panes_active: tab.is_sync_panes_active(),
});
}
self.send_plugin_instructions