diff options
| author | Andrew Guschin <guschin@altlinux.org> | 2026-10-30 03:32:00 +0400 |
|---|---|---|
| committer | Andrew Guschin <guschin@altlinux.org> | 2026-10-30 03:32:00 +0400 |
| commit | fc3c1d51b1be9db6ba6ad286584fbc34bb305f38 (patch) | |
| tree | d23628e0534f0a4646c111c2ef6dd1501f18ae17 /src/tui.rs | |
| parent | d608ffeeda1a479c9dc0e5f6ad269ba07a510d7f (diff) | |
Fix protected activation ordering and diagnostic review findings
Diffstat (limited to 'src/tui.rs')
| -rw-r--r-- | src/tui.rs | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -65,7 +65,14 @@ impl Ui { self.entries = client.configurations(self.viewed.as_deref()).await?; self.settings = client.read("Settings").await?; self.logs = client.read("Logs").await?; - self.row = self.row.min(self.visible().len().saturating_sub(1)); + self.row = self.row.min( + if self.tab == 1 { + self.subscriptions.len() + } else { + self.visible().len() + } + .saturating_sub(1), + ); Ok(()) } fn visible(&self) -> Vec<&ConfigurationSummary> { |