Commit 0d3c20d3 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Clear plugins after changing KNS entires

BUG: 382136
FIXED-IN: 5.20
parent 5ba3793c
...@@ -50,6 +50,7 @@ Module::Module(QWidget *parent, const QVariantList &args) : ...@@ -50,6 +50,7 @@ Module::Module(QWidget *parent, const QVariantList &args) :
ui->ghnsButton->setConfigFile(QStringLiteral("kwinscripts.knsrc")); ui->ghnsButton->setConfigFile(QStringLiteral("kwinscripts.knsrc"));
connect(ui->ghnsButton, &KNS3::Button::dialogFinished, this, [this](const KNS3::Entry::List &changedEntries) { connect(ui->ghnsButton, &KNS3::Button::dialogFinished, this, [this](const KNS3::Entry::List &changedEntries) {
if (!changedEntries.isEmpty()) { if (!changedEntries.isEmpty()) {
ui->scriptSelector->clearPlugins();
updateListViewContents(); updateListViewContents();
} }
}); });
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment