feat(commandline): allow history to never fade when fade time is 0

This commit is contained in:
yztink committed 2026-10-03 11:35:39 -07:00
1 parent 3f54f2f494
commit 384519f2cc
3 files changed
+34 -21

No files matched your search

+3 -4
View File
@@ -2534,11 +2534,10 @@ impl OpenCADStudio {
Subscription::none()
};
// While the command-line overlay is still displaying any
// recently-pushed history entry, re-render every frame so the
// recently-pushed history entry that is expiring, re-render every frame so the
// entry disappears at the moment its visible window expires.
// The subscription auto-stops once no entry is fresh enough
// (typically within a few seconds of the last command).
let history_tick = if self.command_line.has_visible_history() {
// The subscription auto-stops once no entry is expiring.
let history_tick = if self.command_line.has_expiring_history() {
window::frames().map(Message::Tick)
} else {
Subscription::none()