Remove channel-based communications #135

Merged
savanni merged 3 commits from fitnesstrax/remove-channel-communications into main 2023-12-29 03:21:20 +00:00
Owner

Using channels to communicate with the core and back to the UI was turning out to be particularly difficult. Getting data back from the core into the parts of the UI that needed it was just short of impossible.

glib now provides functions which will launch asynchronous operations that still run on the main rendering thread. This allows me to make an async call into the core app from anywhere. Then the core app can move the operation to be done into another thread so that the main UI doesn't get blocked waiting for slow IO operations.

Using channels to communicate with the core and back to the UI was turning out to be particularly difficult. Getting data back from the core into the parts of the UI that needed it was just short of impossible. glib now provides functions which will launch asynchronous operations that still run on the main rendering thread. This allows me to make an async call into the core app from anywhere. Then the core app can move the operation to be done into another thread so that the main UI doesn't get blocked waiting for slow IO operations.
savanni added 2 commits 2023-12-29 02:50:21 +00:00
8049859816 Clean up showing the welcome and historical screens
Swapping is now done in dedicated functions instead of a big pattern
match.

After selecting a database, the app window will apply the configuration
by opening the database, saving the path to configuration, and switching
to the historical view.
savanni added 1 commit 2023-12-29 03:19:02 +00:00
savanni force-pushed fitnesstrax/remove-channel-communications from 68b47ffa1a to d269924827 2023-12-29 03:20:46 +00:00 Compare
savanni merged commit d269924827 into main 2023-12-29 03:21:20 +00:00
savanni deleted branch fitnesstrax/remove-channel-communications 2023-12-29 03:21:20 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: savanni/monorepo#135
No description provided.