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

Hide sync library by default #1203

Closed
wants to merge 1 commit into from

Conversation

Riztard
Copy link

@Riztard Riztard commented Jun 7, 2024

only show "Sync library" in library overflow if sync feature is not off

sync off sync on
image image

hide sync library from overflow if sync feature is not used
@@ -107,6 +110,7 @@ private fun LibraryRegularToolbar(
searchQuery = searchQuery,
onChangeSearchQuery = onSearchQueryChange,
actions = {
val syncPreferences: SyncPreferences = Injekt.get() // SY
Copy link
Owner

Choose a reason for hiding this comment

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

The syncPreferences.isSyncEnabled() needs to be a state thats stored inside the LibraryScreenModel and passed through a parameter. We can't have it inside the composable

@Riztard Riztard marked this pull request as draft June 27, 2024 10:55
@jobobby04
Copy link
Owner

Superseded by #1275

@jobobby04 jobobby04 closed this Sep 12, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants