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: Show sync DiscoveryView directly #1161

Merged
merged 2 commits into from
Dec 7, 2023
Merged

Conversation

Lnamw
Copy link
Contributor

@Lnamw Lnamw commented Dec 5, 2023

No description provided.

@Lnamw Lnamw marked this pull request as ready for review December 5, 2023 12:02
@Lnamw Lnamw requested a review from a team as a code owner December 5, 2023 12:02
adrien-coye
adrien-coye previously approved these changes Dec 5, 2023
Copy link
Contributor

@adrien-coye adrien-coye left a comment

Choose a reason for hiding this comment

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

Looks alright at first glance.

@@ -231,7 +231,7 @@ struct SplitView: View {
return false
}

return appLaunchCounter.value > Constants.minimumOpeningBeforeSync
return true
Copy link
Member

@valentinperignon valentinperignon Dec 5, 2023

Choose a reason for hiding this comment

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

Maybe we can simplify the logic? We must show the view if UserDefaults.shared.shouldPresentSyncDiscovery && !appLaunchCounter.isFirstLaunch?
We might even be able to remove appLaunchCounter.isFirstLaunch as we want to present this bottom sheet asap

Copy link

sonarcloud bot commented Dec 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@valentinperignon valentinperignon merged commit df3f073 into master Dec 7, 2023
7 checks passed
@valentinperignon valentinperignon deleted the sync-discoveryView branch December 7, 2023 13:13
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

3 participants