mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-09 23:34:20 +00:00
AudioDeviceSelector: Auto resize when showing or hiding advanced settings
This commit is contained in:
parent
e8d221ccb3
commit
da68fe2b60
2 changed files with 9 additions and 0 deletions
|
|
@ -1104,6 +1104,12 @@ void AudioDeviceSelectorComponent::resized()
|
|||
setSize (getWidth(), r.getY());
|
||||
}
|
||||
|
||||
void AudioDeviceSelectorComponent::childBoundsChanged (Component* child)
|
||||
{
|
||||
if (child == audioDeviceSettingsComp.get())
|
||||
resized();
|
||||
}
|
||||
|
||||
void AudioDeviceSelectorComponent::updateDeviceType()
|
||||
{
|
||||
if (auto* type = deviceManager.getAvailableDeviceTypes() [deviceTypeDropDown->getSelectedId() - 1])
|
||||
|
|
|
|||
|
|
@ -89,6 +89,9 @@ public:
|
|||
/** @internal */
|
||||
void resized() override;
|
||||
|
||||
/** @internal */
|
||||
void childBoundsChanged (Component* child) override;
|
||||
|
||||
private:
|
||||
//==============================================================================
|
||||
void handleBluetoothButton();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue