frontend: Don't read unloaded module in source toolbar

This commit is contained in:
Penwywern
2026-08-20 18:25:04 -04:00
committed by Ryan Foster
parent 5cecae04f2
commit f6933c9639
@@ -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);