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

Refactor: Update eventFilter in MainWindow to set default box display… #45

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

royshil
Copy link
Contributor

@royshil royshil commented Oct 12, 2024

… style

This commit updates the eventFilter method in the MainWindow class to set the default box display style. The previous implementation used the fetch_data function to retrieve the box display style from the "scoresight.json" file, but it did not handle cases where the retrieved value was not an integer. This commit introduces a check to ensure that the retrieved value is an integer and sets it as the current index of the comboBox_boxDisplayStyle. If the retrieved value is not an integer, the default index of 3 is used instead.

… style

This commit updates the eventFilter method in the MainWindow class to set the default box display style. The previous implementation used the fetch_data function to retrieve the box display style from the "scoresight.json" file, but it did not handle cases where the retrieved value was not an integer. This commit introduces a check to ensure that the retrieved value is an integer and sets it as the current index of the comboBox_boxDisplayStyle. If the retrieved value is not an integer, the default index of 3 is used instead.
@royshil royshil merged commit b4ede12 into main Oct 12, 2024
5 checks passed
@royshil royshil deleted the roy.fix_mac_loading_bug branch October 12, 2024 03:24
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.

1 participant