Skip to content

Conversation

@Namyunsuk
Copy link

@Namyunsuk Namyunsuk commented Jul 14, 2025

What I have done and why

This PR encapsulates the shouldDisplayUndoBookmark state in BookmarksViewModel by adding a private set.

Previously, shouldDisplayUndoBookmark was publicly mutable, which allowed external classes or composables to modify its value directly. By making the setter private, only the ViewModel can update this state. This change improves encapsulation and prevents unintended modifications from outside.

Fix #1899

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.

[FR]: Encapsulate 'shouldDisplayUndoBookmark' state in BookmarksViewModel

1 participant