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

UI: Refactor main window menus

Open cg2121 opened this issue 1 year ago • 1 comments

Description

This makes it so we don't have to manually delete each menu each time they are shown, they are now created on demand, saving some memory. This also moves the menu code to a separate file.

Motivation and Context

The menu code has always bothered me

How Has This Been Tested?

Clicked through each menu to made sure they still worked

Types of changes

  • 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 Aug 22 '24 09:08 cg2121

I have updated the code to remove the sender methods from the menus.

cg2121 avatar Aug 25 '24 22:08 cg2121

Updated to adapt to the new frontend structure.

cg2121 avatar May 03 '25 14:05 cg2121