Skip to content

Commit

Permalink
help: Convert :checked value into boolean when used in :ncheckbox.
Browse files Browse the repository at this point in the history
Fixes bug introduced in ae9a0dd.
  • Loading branch information
hgluka committed Oct 9, 2023
1 parent b331985 commit 76a9e0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/help.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ to the next."
(:div.left
(:ncheckbox
:name "blocker-mode"
:checked (find 'nyxt/mode/blocker:blocker-mode (default-modes (current-buffer)))
:checked (when (find 'nyxt/mode/blocker:blocker-mode (default-modes (current-buffer))) t)
:buffer buffer
'((blocker-mode "Blocker mode")
(nyxt::auto-configure
Expand All @@ -309,7 +309,7 @@ to the next."
%slot-value%)))))))
(:ncheckbox
:name "no-script-mode"
:checked (find 'nyxt/mode/no-script:no-script-mode (default-modes (current-buffer)))
:checked (when (find 'nyxt/mode/no-script:no-script-mode (default-modes (current-buffer))) t)
:buffer buffer
'((no-script-mode "No-Script mode")
(nyxt::auto-configure
Expand All @@ -322,7 +322,7 @@ to the next."
%slot-value%)))))))
(:ncheckbox
:name "reduce-tracking-mode"
:checked (find 'nyxt/mode/reduce-tracking:reduce-tracking-mode (default-modes (current-buffer)))
:checked (when (find 'nyxt/mode/reduce-tracking:reduce-tracking-mode (default-modes (current-buffer))) t)
:buffer buffer
'((reduce-tracking-mode "Reduce-Tracking mode")
(nyxt::auto-configure
Expand Down

0 comments on commit 76a9e0d

Please sign in to comment.