mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-21 15:38:59 +03:00
Merge pull request #4409 from urbit/la/setting-fix
setting-store: show tutorial upon first load, don't show if dismissed
This commit is contained in:
commit
b3081bae97
@ -22,7 +22,14 @@
|
||||
do ~(. +> bol)
|
||||
def ~(. (default-agent this %|) bol)
|
||||
::
|
||||
++ on-init on-init:def
|
||||
++ on-init
|
||||
^- (quip card _this)
|
||||
:- ~
|
||||
%_ this
|
||||
settings.state
|
||||
%- ~(gas by *^settings)
|
||||
[%tutorial (~(gas by *bucket) [%seen b+%|]~)]~
|
||||
==
|
||||
::
|
||||
++ on-save !>(state)
|
||||
::
|
||||
@ -31,10 +38,7 @@
|
||||
^- (quip card _this)
|
||||
=/ old !<(versioned-state old-vase)
|
||||
?- -.old
|
||||
%0
|
||||
:_ this(state old)
|
||||
=- [%pass / %agent [our dap]:bol %poke -]~
|
||||
settings-event+!>([%put-entry %tutorial %seen b+%|])
|
||||
%0 [~ this(state old)]
|
||||
==
|
||||
::
|
||||
++ on-poke
|
||||
|
Loading…
Reference in New Issue
Block a user