mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Reformat Dialog: persist reformat only VCS changed lines checkbox state only if checkbox is enabled.
Previously, if you show reformat dialog on file with no changes, checkbox will be disabled and will be selected "Whole File" scope option, and used it later on reformat.
This commit is contained in:
@@ -151,7 +151,7 @@ public class LayoutCodeDialog extends DialogWrapper {
|
||||
myLastRunOptions.saveRearrangeState(myFile.getLanguage(), myRunOptions.isRearrangeCode());
|
||||
}
|
||||
|
||||
if (!mySelectedTextRadioButton.isSelected()) {
|
||||
if (!mySelectedTextRadioButton.isSelected() && myOnlyVCSChangedTextRb.isEnabled()) {
|
||||
myLastRunOptions.saveProcessVcsChangedTextState(myOnlyVCSChangedTextRb.isSelected());
|
||||
}
|
||||
}
|
||||
@@ -201,8 +201,8 @@ public class LayoutCodeDialog extends DialogWrapper {
|
||||
|
||||
@Override
|
||||
protected void doOKAction() {
|
||||
super.doOKAction();
|
||||
saveCurrentConfiguration();
|
||||
super.doOKAction();
|
||||
}
|
||||
|
||||
public LayoutCodeOptions getRunOptions() {
|
||||
|
||||
Reference in New Issue
Block a user