Commit Graph

7 Commits (main)

Author SHA1 Message Date
Christopher Snowhill 5882affd3f Always create new ContentViewController for volume
This is needed to re-parent the VolumeSlider window, as there is only a
single VolumeSlider, but two different VolumeButtons and their
respective NSPopover windows. So, always recreate the view on open,
which doesn't appear to have a noticeable impact on performance.

Fixes #331

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-10-20 21:28:20 -07:00
Christopher Snowhill 4a0d4bb093 [Volume Control] Only initialize view once
Only initialize viewController once, the first time the volume control
is opened. Re-initializing it can cause an error assigning it as first
responder to the volume slider popover view.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-06-21 22:52:52 -07:00
Christopher Snowhill 85c7073649 Reformat my own source code with clang-format
Signed-off-by: Christopher Snowhill <kode54@gmail.com>
2022-02-06 21:49:27 -08:00
Dzmitry Neviadomski ddf98f7a3b Fix Volume Slider popover reattaching to window. 2021-01-08 09:35:41 +03:00
Dzmitry Neviadomski 9b9e2d2c42 Show Volume slider in NSPopover instead of CGWindow.
Also perform Haptic feedback when volume slider is at 100%.
2021-01-08 00:35:52 +03:00
Dzmitry Neviadomski 76bdebd058 Update volume slider to use NSPopover. 2021-01-07 06:48:40 +03:00
vspader a2f360177e Organized things a little better. 2009-02-22 14:57:02 -08:00