Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Replay Sync Checkbox #69

Merged
merged 5 commits into from
Feb 23, 2024
Merged

Fix Replay Sync Checkbox #69

merged 5 commits into from
Feb 23, 2024

Conversation

ryantaylor
Copy link
Collaborator

My initial implementation of the sync checkbox on the backend was broken; these changes fix it. Tested manually with custom games and looks to be solid now.

@@ -96,7 +96,7 @@ async fn authenticate<R: Runtime>(handle: AppHandle<R>) -> Result<String> {
*state.request.lock().await = Some(request);

info!("redirecting to auth URL: {auth_url}");
open(&handle.shell_scope(), auth_url.clone(), None).map_err(Shell);
open(&handle.shell_scope(), auth_url.clone(), None).map_err(Shell)?;
Copy link
Collaborator Author

@ryantaylor ryantaylor Feb 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ? here just makes sure any error halts execution and propagates up to the caller (without it the error is swallowed).

This call really shouldn't ever fail though so it probably doesn't actually make a difference here.

Copy link
Member

@petrvecera petrvecera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand shit out of these changes 🤷 LGTM :shipit:

@petrvecera petrvecera merged commit 952b56b into master Feb 23, 2024
2 checks passed
@petrvecera petrvecera deleted the sync-fix branch February 23, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants