mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 12:25:35 +02:00
bug 307520: Save build console toggle does not work when first being pressed
Patch from Dmitry Kozlov
This commit is contained in:
parent
a9c6b8f9a7
commit
7824e2e314
1 changed files with 5 additions and 4 deletions
|
@ -57,10 +57,11 @@ public class SaveConsoleAction extends Action {
|
||||||
Shell shell = fConsolePage.getControl().getShell();
|
Shell shell = fConsolePage.getControl().getShell();
|
||||||
String id = "org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"; //$NON-NLS-1$
|
String id = "org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build"; //$NON-NLS-1$
|
||||||
PreferenceDialog d = PreferencesUtil.createPropertyDialogOn(shell, project, id, new String[] { id }, null);
|
PreferenceDialog d = PreferencesUtil.createPropertyDialogOn(shell, project, id, new String[] { id }, null);
|
||||||
int result = d.open();
|
d.open();
|
||||||
if ( result == Window.CANCEL ) {
|
BuildOutputLogger.SaveBuildOutputPreferences newBp =
|
||||||
setChecked(false);
|
BuildOutputLogger.readSaveBuildOutputPreferences(project);
|
||||||
}
|
setChecked(newBp.isSaving);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bp.isSaving = isChecked();
|
bp.isSaving = isChecked();
|
||||||
|
|
Loading…
Add table
Reference in a new issue