A music player that connects to your cloud/distributed storage.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Save all hypaethral data in cache when connection drops

+15 -3
+15 -3
src/Applications/UI.elm
··· 387 387 ) 388 388 389 389 SetIsOnline False -> 390 - ( { model | isOnline = False } 391 - , Cmd.none 390 + -- The app went offline, cache everything 391 + -- (if caching is supported). 392 + (case model.authentication of 393 + Authentication.Authenticated (Dropbox _) -> 394 + saveAllHypaethralData { sync = True } 395 + 396 + Authentication.Authenticated (RemoteStorage _) -> 397 + saveAllHypaethralData { sync = True } 398 + 399 + _ -> 400 + identity 392 401 ) 402 + ( { model | isOnline = False } 403 + , Cmd.none 404 + ) 393 405 394 406 SetIsOnline True -> 395 407 andThen ··· 403 415 update SyncUserData 404 416 405 417 _ -> 406 - update Bypass 418 + return 407 419 ) 408 420 ( { model | isOnline = True } 409 421 , Cmd.none