-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
So the idea is to remove the `VPNState(oldstate)` pattern. I originally chose this pattern as we only had one message-pipe thing and it would have been mindbogglingly annyoing to write `getServers` `getInfoX` etc commands. So if we only had an immutable sum type for the state i could avoid some complexity :) This however meant that we were creating a new immutable copy of the serverlist even if just the connection status changed. Given we now have property's and ipc none of those reasons exists, i can now easily have multiple fields that push info as they come in. So i think it's nicer to have `postToApp(servers) -> will update VPNController.servers-> will notify property subscribers`.
- Loading branch information
Showing
10 changed files
with
378 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.