Skip to content

Add an HDR killswitch in the preferences #4006

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

Merged
merged 2 commits into from
Oct 20, 2022
Merged

Add an HDR killswitch in the preferences #4006

merged 2 commits into from
Oct 20, 2022

Conversation

uiryuu
Copy link
Member

@uiryuu uiryuu commented Oct 20, 2022


Description:
Since this contains mostly xib changes, redo instead of cherrypicking.
Remake of CarterLi@0cae124

@low-batt
Copy link
Contributor

I've pulled this PR locally. I've disabled the new HDR preference. IINA is still enabling HDR for the file I'm testing with. Restarting IINA did not help. Investigating...

Copy link
Contributor

@low-batt low-batt left a comment

Choose a reason for hiding this comment

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

issue-3808

The new preferences button needs to be bound to the setting in user defaults as can be seen was done for the ICC button shown in the screen shot above. I already was going to ask the other developers how you get Xcode to make this binding. The usual ctrl-click method was not working for me. Anyway this is why the new setting is not working. To see this all you have to do is uncheck the button and restart. The HDR enabled button will be checked again since the value was not stored in user defaults due to the missing binding.

@low-batt low-batt linked an issue Oct 20, 2022 that may be closed by this pull request
Remake of CarterLi/iina@0cae124
Ref: #3808

Add binding in XIB from new button to new preference in user defaults.
Copy link
Contributor

@low-batt low-batt left a comment

Choose a reason for hiding this comment

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

I pushed a commit to fix the issue with needing to bind the new control to the preference.

@low-batt
Copy link
Contributor

Took me hours to figure out how you directly bind to user defaults in the XIB. All the posts I found on the web provided instructions for binding using code, not directly in the XIB. I finally found the correct place to do this in Xcode.

I tested and when the new preference was disabled IINA did not enable HDR for the HDR video I was testing with.

@lhc70000 lhc70000 merged commit c92c75a into develop Oct 20, 2022
@lhc70000 lhc70000 deleted the hdr-killswitch branch October 20, 2022 22:37
@uiryuu
Copy link
Member Author

uiryuu commented Oct 21, 2022

@low-batt My bad completely forgetting adding the binding...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add master killswitch for HDR
3 participants