mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 10:14:13 -05:00
frontend: Don't read unloaded module in source toolbar
This commit is contained in:
@@ -13,6 +13,10 @@ void ApplicationAudioCaptureToolbar::Init()
|
||||
ui->activateButton = nullptr;
|
||||
|
||||
obs_module_t *mod = obs_get_module("win-wasapi");
|
||||
if (!mod) {
|
||||
return;
|
||||
}
|
||||
|
||||
const char *device_str = obs_module_get_locale_text(mod, "Window");
|
||||
ui->deviceLabel->setText(device_str);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user