Commit 6c4e0d66 authored by oioi 555's avatar oioi 555 Committed by Nate Graham
Browse files

Clarify enable or disable Apply button on save

Clarify whether the Apply button is enabled or disabled based on the saved result.

BUG:437423
parent 5585b084
Pipeline #215520 passed with stage
in 1 minute and 11 seconds
......@@ -152,10 +152,11 @@ void SddmKcm::save()
connect(job, &KJob::result, this, [this, job] {
if (job->error()) {
Q_EMIT errorOccured(job->errorString());
settingsChanged(); // Re-enable the Apply button
} else {
m_data->sddmSettings()->load();
}
// Clarify enable or disable the Apply button.
this->setNeedsSave(job->error());
});
job->start();
}
......
Supports Markdown
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