Add WindowSelectionWidget

Refreshes list of windows when widget becomes visible to support widget
caching
This commit is contained in:
WarmUpTill
2025-05-21 13:05:31 +02:00
committed by WarmUpTill
parent c43439ee64
commit c281c6db83
7 changed files with 50 additions and 15 deletions

View File

@@ -163,16 +163,12 @@ MacroActionWindowEdit::MacroActionWindowEdit(
QWidget *parent, std::shared_ptr<MacroActionWindow> entryData)
: QWidget(parent),
_actions(new QComboBox()),
_windows(new QComboBox()),
_windows(new WindowSelectionWidget(this)),
_regex(new RegexConfigWidget(this)),
_infoLayout(new QHBoxLayout())
{
populateActionSelection(_actions);
_windows->setEditable(true);
_windows->setMaxVisibleItems(20);
PopulateWindowSelection(_windows);
auto focusLimitation = new QLabel(obs_module_text(
"AdvSceneSwitcher.action.window.type.setFocusWindow.limitation"));
_infoLayout->addWidget(focusLimitation);