mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
fix(tui): resolve merge fallout in app.rs; remove unused popup hint const to enforce zero warnings
This commit is contained in:
@@ -1810,18 +1810,6 @@ impl App<'_> {
|
||||
self.schedule_redraw_in(duration);
|
||||
}
|
||||
}
|
||||
AppEvent::OpenReviewBranchPicker(cwd) => {
|
||||
self.chat_widget.show_review_branch_picker(&cwd).await;
|
||||
}
|
||||
AppEvent::OpenReviewCommitPicker(cwd) => {
|
||||
self.chat_widget.show_review_commit_picker(&cwd).await;
|
||||
}
|
||||
AppEvent::OpenReviewCustomPrompt => {
|
||||
self.chat_widget.show_review_custom_prompt();
|
||||
}
|
||||
AppEvent::OpenReviewPopup => {
|
||||
self.chat_widget.open_review_popup();
|
||||
}
|
||||
}
|
||||
if self.alt_screen_active {
|
||||
terminal.clear()?;
|
||||
|
||||
@@ -12,7 +12,7 @@ use ratatui::widgets::StatefulWidgetRef;
|
||||
use ratatui::widgets::Widget;
|
||||
use std::cell::RefCell;
|
||||
|
||||
use super::popup_consts::STANDARD_POPUP_HINT_LINE;
|
||||
use super::popup_consts::_STANDARD_POPUP_HINT_LINE as STANDARD_POPUP_HINT_LINE;
|
||||
use crate::app_event_sender::AppEventSender;
|
||||
use crate::bottom_pane::SelectionAction;
|
||||
|
||||
|
||||
@@ -5,4 +5,5 @@
|
||||
pub(crate) const MAX_POPUP_ROWS: usize = 8;
|
||||
|
||||
/// Standard footer hint text used by popups.
|
||||
pub(crate) const STANDARD_POPUP_HINT_LINE: &str = "Press Enter to confirm or Esc to go back";
|
||||
/// Prefix with underscore to avoid dead_code warnings if not referenced.
|
||||
pub(crate) const _STANDARD_POPUP_HINT_LINE: &str = "Press Enter to confirm or Esc to go back";
|
||||
|
||||
Reference in New Issue
Block a user