summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPaul Bütow <1224732+snonux@users.noreply.github.com>2025-06-20 21:42:10 +0300
committerGitHub <noreply@github.com>2025-06-20 21:42:10 +0300
commitd4bf9ac060c6d64f00a06e7a54f01c61091131b5 (patch)
treee44102f750b9f2b5e832f582a491d7de8443660c /internal
parentd65a7be46ed619445b933d4d2842705315a5cc53 (diff)
parent1c33a0213518eb41b1fdffa0345614c6e485006c (diff)
Merge pull request #52 from snonux/codex/remove-firework-on-quit-and-show-on-start
Show fireworks on start
Diffstat (limited to 'internal')
-rw-r--r--internal/ui/fireworks.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/ui/fireworks.go b/internal/ui/fireworks.go
index b95920b..b3ed063 100644
--- a/internal/ui/fireworks.go
+++ b/internal/ui/fireworks.go
@@ -48,7 +48,7 @@ func (m fwModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
m.height = msg.Height
return m, nil
case tickMsg:
- if time.Since(m.start) > 5*time.Second {
+ if time.Since(m.start) > 3*time.Second {
return m, tea.Quit
}
// advance frames
@@ -119,7 +119,7 @@ func (m fwModel) View() string {
return b.String()
}
-// Fireworks runs a short fireworks animation. It stops after five seconds or
+// Fireworks runs a short fireworks animation. It stops after three seconds or
// when a key is pressed.
func Fireworks() {
rand.Seed(time.Now().UnixNano())