mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Save the preferences.
This commit is contained in:
parent
9c677d807f
commit
1d44aef852
1 changed files with 6 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
|||
*******************************************************************************/
|
||||
package org.eclipse.cdt.make.internal.ui.preferences;
|
||||
|
||||
import org.eclipse.cdt.make.core.MakeCorePlugin;
|
||||
import org.eclipse.cdt.make.internal.ui.MakeProjectOptionBlock;
|
||||
import org.eclipse.cdt.make.internal.ui.MakeUIPlugin;
|
||||
import org.eclipse.cdt.ui.dialogs.ICOptionContainer;
|
||||
|
@ -62,7 +63,11 @@ public class MakePreferencePage extends PreferencePage implements IWorkbenchPref
|
|||
}
|
||||
|
||||
public boolean performOk() {
|
||||
return fOptionBlock.performApply(null);
|
||||
boolean ok = fOptionBlock.performApply(null);
|
||||
if (MakeCorePlugin.getDefault().getPluginPreferences().needsSaving()) {
|
||||
MakeCorePlugin.getDefault().savePluginPreferences();
|
||||
}
|
||||
return ok;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue