mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-12 04:11:06 -05:00
Add WindowSelectionWidget
Refreshes list of windows when widget becomes visible to support widget caching
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user