fixed saving of animations configuration based on expertMode().
This commit is contained in:
parent
9f12ecd91d
commit
43cae07762
1 changed files with 11 additions and 4 deletions
|
@ -156,14 +156,21 @@ namespace Oxygen
|
||||||
configuration.setDrawTitleOutline( ui->ui.titleOutline->isChecked() );
|
configuration.setDrawTitleOutline( ui->ui.titleOutline->isChecked() );
|
||||||
configuration.setUseDropShadows( ui->shadowConfigurations[1]->isChecked() );
|
configuration.setUseDropShadows( ui->shadowConfigurations[1]->isChecked() );
|
||||||
configuration.setUseOxygenShadows( ui->shadowConfigurations[0]->isChecked() );
|
configuration.setUseOxygenShadows( ui->shadowConfigurations[0]->isChecked() );
|
||||||
configuration.setAnimationsEnabled( ui->ui.animationsEnabled->isChecked() );
|
|
||||||
configuration.setUseNarrowButtonSpacing( ui->ui.narrowButtonSpacing->isChecked() );
|
configuration.setUseNarrowButtonSpacing( ui->ui.narrowButtonSpacing->isChecked() );
|
||||||
|
|
||||||
// save into configuration
|
// save into configuration
|
||||||
|
if( ui->expertMode() )
|
||||||
|
{
|
||||||
|
|
||||||
ui->animationConfigWidget()->setConfiguration( configuration );
|
ui->animationConfigWidget()->setConfiguration( configuration );
|
||||||
ui->animationConfigWidget()->save();
|
ui->animationConfigWidget()->save();
|
||||||
configuration = ui->animationConfigWidget()->configuration();
|
configuration = ui->animationConfigWidget()->configuration();
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
configuration.setAnimationsEnabled( ui->ui.animationsEnabled->isChecked() );
|
||||||
|
|
||||||
|
}
|
||||||
// save standard configuration
|
// save standard configuration
|
||||||
KConfigGroup configurationGroup( _configuration, "Windeco");
|
KConfigGroup configurationGroup( _configuration, "Windeco");
|
||||||
configurationGroup.deleteGroup();
|
configurationGroup.deleteGroup();
|
||||||
|
|
Loading…
Reference in a new issue