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

Default search lang #71

Merged
merged 3 commits into from
Oct 15, 2023
Merged

Conversation

aless2003
Copy link
Collaborator

Gives the option to set a Default Language which will be used when searching for Manga. This should improve the usability of the search feature.

This commit refactors the search functionality in `SearchView.java` to utilize a `ComboBox` instead of `LangComboBox`.

Additionally, it adds a new feature for users to select a default search language. The selected language is saved into the settings in `Settings.java` and is applied each time the user employs the search function. This enhances the search results accuracy for users primarily reading in a specific language.

In `SettingsView.java`, it also adds a ComboBox for users to select a default search language for their sessions.

This should improve both code clarity and the user experience.
This commit replaces `settings.getDefaultSearchLang() != null && !settings.getDefaultSearchLang().isEmpty()` with `settings.hasDefaultSearchLang()` in `SearchView.java`. This change was made for better readability and maintenance of the code. The `hasDefaultSearchLang()` method has been updated in the `Settings.java` class to check for both null and empty values.
@aless2003 aless2003 added enhancement New feature or request Features labels Oct 15, 2023
@aless2003 aless2003 self-assigned this Oct 15, 2023
@aless2003 aless2003 merged commit 7e80cbe into Suwayomi:master Oct 15, 2023
@aless2003 aless2003 deleted the default-search-lang branch October 15, 2023 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant