obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

UI: Disable properties button in source toolbar

Open cg2121 opened this issue 3 years ago • 2 comments

Description

If a scene or group is selected, disable the properties button in the source toolbar. This also does a refactor of the function to enable/disable the toolbar buttons.

Screenshot from 2022-12-11 22-49-45

Motivation and Context

Makes the source toolbar consistent with the source context bar.

How Has This Been Tested?

Selected/unselected a nested scene in the sources list to make sure the toolbar updated correctly.

Types of changes

  • Tweak (non-breaking change to improve existing functionality)
  • Code cleanup (non-breaking change which makes code smaller or more readable)

Checklist:

  • [x] My code has been run through clang-format.
  • [x] I have read the contributing document.
  • [x] My code is not on the master branch.
  • [x] The code has been tested.
  • [x] All commit messages are properly formatted and commits squashed where appropriate.
  • [x] I have included updates to all appropriate documentation.

cg2121 avatar Dec 12 '22 04:12 cg2121

Should it be the same for groups? Groups also have no properties.

COOLIGUAY avatar Dec 12 '22 17:12 COOLIGUAY

Updated to also include groups.

cg2121 avatar Dec 13 '22 17:12 cg2121