Commit 01cecb16 authored by Benjamin Port's avatar Benjamin Port
Browse files

ModuleView: Hide button when KCModule don't need them

Reviewers: ervin, meven, crossi, davidedmundson

Reviewed By: ervin

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D26518
parent df259254
......@@ -389,10 +389,14 @@ void ModuleView::stateChanged()
updatePageIconHeader( d->mPageWidget->currentPage() );
d->mApplyAuthorize->setAuthAction( moduleAction );
d->mDefault->setEnabled( (buttons & KCModule::Default) && !defaulted );
d->mApply->setEnabled( (buttons & KCModule::Apply) && change );
d->mReset->setEnabled( (buttons & KCModule::Apply) && change );
d->mDefault->setEnabled(!defaulted);
d->mDefault->setVisible(buttons & KCModule::Default);
d->mApply->setEnabled(change);
d->mApply->setVisible(buttons & KCModule::Apply);
d->mReset->setEnabled(change);
d->mReset->setVisible(buttons & KCModule::Apply);
d->mHelp->setEnabled(buttons & KCModule::Help );
d->mHelp->setVisible(buttons & KCModule::Help );
emit moduleChanged( change );
}
......
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