Skip to content
Snippets Groups Projects
Commit 390feaf8 authored by meejah's avatar meejah
Browse files

naming

parent 47edb3b2
No related branches found
No related tags found
1 merge request!72Hide the "tech demo" page behind a secret click pattern
Pipeline #5003 failed
......@@ -48,9 +48,10 @@ data App t = App
}
accum :: (Either T.Text [MagicFolder]) -> (Bool, (Either T.Text [MagicFolder])) -> (Bool, (Either T.Text [MagicFolder]))
accum (Left _) _ = (False, Right [])
accum (Right f) _ = (True, Right f)
foldLoadState :: (Either T.Text [MagicFolder]) -> (Bool, (Either T.Text [MagicFolder])) -> (Bool, (Either T.Text [MagicFolder]))
foldLoadState (Left _) _ = (False, Right [])
foldLoadState (Right f) _ = (True, Right f)
-- | Load the initial application state from local configuration.
initialApp
......@@ -79,7 +80,7 @@ initialApp startEv = do
-- in this case, we can only fire once but if this could fire
-- multiple times we should always remain True once we get to
-- True
initializedDyn <- foldDyn accum (False, Right []) firstLoadEvent
initializedDyn <- foldDyn foldLoadState (False, Right []) firstLoadEvent
-- Create a paired event/function for performing a content refresh on
-- a specific magic-folder.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment