summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorT <t@tjp.lol>2025-04-03 10:42:56 -0600
committerT <t@tjp.lol>2025-04-03 10:43:50 -0600
commit72749a96bd0b385853e14168dc2d8facd3b34135 (patch)
tree71bf7734cfcb2c1c0d7ea68865e3319888878b36
parentb304395d251e0cf3e3079fd1acf9eb50c16e81ac (diff)
still print the modal message even if saving to a non-default tourHEADmain
-rw-r--r--tour.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/tour.go b/tour.go
index 8b2b431..308412a 100644
--- a/tour.go
+++ b/tour.go
@@ -62,7 +62,9 @@ func TourAdd(state *BrowserState, targets []string) error {
state.CurrentTour.Links = append(state.CurrentTour.Links, newurls...)
if state.CurrentTour != &state.DefaultTour {
- return saveTours(state.NamedTours)
+ if err := saveTours(state.NamedTours); err != nil {
+ return err
+ }
}
state.Modal = fmt.Appendf([]byte{}, "Added %d urls to the tour\n", len(newurls))