Update process list on visibility change

This is done to support widget caching
This commit is contained in:
WarmUpTill 2025-05-21 16:05:10 +02:00 committed by WarmUpTill
parent 5ce4171773
commit 34baa56134
2 changed files with 12 additions and 0 deletions

View File

@ -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) {

View File

@ -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 &);