Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.