mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Update process list on visibility change
This is done to support widget caching
This commit is contained in:
parent
5ce4171773
commit
34baa56134
|
|
@ -156,6 +156,15 @@ void MacroConditionProcessEdit::ProcessChanged(const QString &text)
|
|||
QString::fromStdString(_entryData->GetShortDesc()));
|
||||
}
|
||||
|
||||
void MacroConditionProcessEdit::showEvent(QShowEvent *event)
|
||||
{
|
||||
const QSignalBlocker b(_processSelection);
|
||||
const auto text = _processSelection->currentText();
|
||||
_processSelection->clear();
|
||||
PopulateProcessSelection(_processSelection);
|
||||
_processSelection->setCurrentText(text);
|
||||
}
|
||||
|
||||
void MacroConditionProcessEdit::RegexChanged(const RegexConfig &conf)
|
||||
{
|
||||
if (_loading || !_entryData) {
|
||||
|
|
|
|||
|
|
@ -47,6 +47,9 @@ public:
|
|||
std::dynamic_pointer_cast<MacroConditionProcess>(cond));
|
||||
}
|
||||
|
||||
protected:
|
||||
void showEvent(QShowEvent *event) override;
|
||||
|
||||
private slots:
|
||||
void ProcessChanged(const QString &text);
|
||||
void RegexChanged(const RegexConfig &);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user