diff options
author | extrawurst <776816+extrawurst@users.noreply.github.com> | 2022-08-27 17:55:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-27 17:55:06 +0200 |
commit | ef3ece552dc04414ee6c69b7ad41186106bbfe58 (patch) | |
tree | 3ffea284115d7f13cf60dc9db99138b17680ac9e /src/tabs | |
parent | bcb565788ec530fef6ba053398f307562b3ef7fe (diff) |
PoC list submodules (#1090)
Diffstat (limited to 'src/tabs')
-rw-r--r-- | src/tabs/status.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/tabs/status.rs b/src/tabs/status.rs index 00cea28d..622912c4 100644 --- a/src/tabs/status.rs +++ b/src/tabs/status.rs @@ -781,6 +781,12 @@ impl Component for Status { true, self.pending_revert() || force_all, )); + + out.push(CommandInfo::new( + strings::commands::view_submodules(&self.key_config), + true, + true, + )); } { @@ -936,6 +942,12 @@ impl Component for Status { NeedsUpdate::ALL, )); Ok(EventState::Consumed) + } else if key_match( + k, + self.key_config.keys.view_submodules, + ) { + self.queue.push(InternalEvent::ViewSubmodules); + Ok(EventState::Consumed) } else { Ok(EventState::NotConsumed) }; |