diff options
| author | crueter <crueter@eden-emu.dev> | 2025-10-20 04:08:38 +0200 |
|---|---|---|
| committer | crueter <crueter@eden-emu.dev> | 2025-10-20 04:08:38 +0200 |
| commit | 54d6283ac338b0b748668ce0d5a3b28ea0ca9924 (patch) | |
| tree | 4f5df5bb765109d970b0ea20ba8ffd95e672e57f /src/yuzu/configuration/configure_audio.cpp | |
| parent | 2e9dbe3f1d8133570cd9db92aa05769733451029 (diff) | |
[desktop] Fix misaligned output device (#2786)
Builder::BuildWidget previously relied on Qt to handle layout stretching
by implicitly setting each widget to have a stretch of 0. This is very
bad behavior, so to fix this we must set a stretch of 1 on each widget
that's added by the builder
furthermore, default and default_dark did not properly define a min-width or min-height for QComboBox. This caused the platform theme to take over sizing which is NOT GOOD and should basically be avoided always
Signed-off-by: crueter <crueter@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2786
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
Diffstat (limited to 'src/yuzu/configuration/configure_audio.cpp')
| -rw-r--r-- | src/yuzu/configuration/configure_audio.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/yuzu/configuration/configure_audio.cpp b/src/yuzu/configuration/configure_audio.cpp index 58478059a4..9d21759240 100644 --- a/src/yuzu/configuration/configure_audio.cpp +++ b/src/yuzu/configuration/configure_audio.cpp @@ -126,6 +126,7 @@ void ConfigureAudio::Setup(const ConfigurationShared::Builder& builder) { restore_output_device_button->setVisible( !Settings::values.audio_output_device_id.UsingGlobal()); widget->layout()->addWidget(restore_output_device_button); + connect(restore_output_device_button, &QAbstractButton::clicked, [this](bool) { Settings::values.audio_output_device_id.SetGlobal(true); SetOutputDevicesFromDeviceID(); |
