disabled when not available.
This commit is contained in:
@@ -181,9 +181,14 @@
|
|||||||
is-starting? (= "Begin quest" start-playing-label)]
|
is-starting? (= "Begin quest" start-playing-label)]
|
||||||
(make-table [[ (make-button start-playing-label :key :continue-or-start) :height 32]
|
(make-table [[ (make-button start-playing-label :key :continue-or-start) :height 32]
|
||||||
:row
|
:row
|
||||||
[ (make-button "Load" :key :load) :height 32]
|
[(doto (make-button "Load" :key :load)
|
||||||
|
(text-button! :set-disabled (not (seq (utils/snapshot-list))))) :height 32]
|
||||||
:row
|
:row
|
||||||
[ (make-button "Chapters" :key :chapters) :height 32]
|
[(doto (make-button "Chapters" :key :chapters)
|
||||||
|
(text-button! :set-disabled (not (->> (utils/get-chapters)
|
||||||
|
(vals)
|
||||||
|
(filter identity)
|
||||||
|
seq)))) :height 32]
|
||||||
:row
|
:row
|
||||||
[(make-label "Music" (color :white)) :height 32]
|
[(make-label "Music" (color :white)) :height 32]
|
||||||
:row
|
:row
|
||||||
|
|||||||
Reference in New Issue
Block a user