|
|
|
@ -467,7 +467,9 @@ public class PreferencePane extends BasicPane {
|
|
|
|
|
}); |
|
|
|
|
vcsPane.add(enableVcsPanel); |
|
|
|
|
vcsPane.add(intervalPanel); |
|
|
|
|
if (VcsHelper.getInstance().isLegacyMode()) { |
|
|
|
|
vcsPane.add(saveCommitCheckBox); |
|
|
|
|
} |
|
|
|
|
vcsPane.add(autoCleanPane); |
|
|
|
|
boolean support = VcsHelper.getInstance().checkV2FunctionSupport(); |
|
|
|
|
saveIntervalPane.setVisible(support); |
|
|
|
@ -491,6 +493,7 @@ public class PreferencePane extends BasicPane {
|
|
|
|
|
saveIntervalPane.setVisible(useV2); |
|
|
|
|
autoCleanPane.setVisible(useV2); |
|
|
|
|
gcControlPane.setVisible(!useV2); |
|
|
|
|
saveCommitCheckBox.setVisible(!useV2); |
|
|
|
|
useVcsAutoCleanScheduleCheckBox.setSelected(useV2); |
|
|
|
|
useVcsAutoSaveScheduleCheckBox.setSelected(useV2); |
|
|
|
|
boolean useAutoClean =useV2 && FineScheduler.getInstance().isStarted(); |
|
|
|
|