Merge pull request #1602 from yztink/feat/commandline-fade-zero-never

feat(commandline): allow history to never fade when fade time is 0
This commit is contained in:
Hakan Seven committed 2026-10-06 00:20:51 +03:00
commit 62bb04c9d8
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()