Browse Source

REPORT-101340 【版本管理二期】自动清理配置灰化时,hover提示没有

release/11.0
Destiny.Lin 1 year ago
parent
commit
8d1c493936
  1. 5
      designer-base/src/main/java/com/fr/design/actions/file/PreferencePane.java

5
designer-base/src/main/java/com/fr/design/actions/file/PreferencePane.java

@ -446,6 +446,7 @@ public class PreferencePane extends BasicPane {
intervalPanel.add(saveIntervalEditor); intervalPanel.add(saveIntervalEditor);
intervalPanel.add(delayLabel); intervalPanel.add(delayLabel);
autoCleanPane = createAutoCleanPane(); autoCleanPane = createAutoCleanPane();
checkAutoScheduleStartAndUpdateStatus();
vcsEnableCheckBox.addChangeListener(new ChangeListener() { vcsEnableCheckBox.addChangeListener(new ChangeListener() {
@Override @Override
public void stateChanged(ChangeEvent e) { public void stateChanged(ChangeEvent e) {
@ -515,7 +516,6 @@ public class PreferencePane extends BasicPane {
autoCleanPane.add(new UILabel(i18nText("Fine-Design_Vcs_Auto_Clean_Content"))); autoCleanPane.add(new UILabel(i18nText("Fine-Design_Vcs_Auto_Clean_Content")));
autoCleanPane.add(autoCleanRetainIntervalComboBox); autoCleanPane.add(autoCleanRetainIntervalComboBox);
autoCleanPane.add(new UILabel(i18nText("Fine-Design_Vcs_Auto_Clean_Last"))); autoCleanPane.add(new UILabel(i18nText("Fine-Design_Vcs_Auto_Clean_Last")));
checkAutoScheduleStartAndUpdateStatus();
autoCleanPane.setVisible(false); autoCleanPane.setVisible(false);
return autoCleanPane; return autoCleanPane;
} }
@ -546,6 +546,9 @@ public class PreferencePane extends BasicPane {
useVcsAutoCleanScheduleCheckBox.setEnabled(b); useVcsAutoCleanScheduleCheckBox.setEnabled(b);
autoCleanIntervalComboBox.setEnabled(b); autoCleanIntervalComboBox.setEnabled(b);
autoCleanRetainIntervalComboBox.setEnabled(b); autoCleanRetainIntervalComboBox.setEnabled(b);
if (autoCleanPane != null) {
autoCleanPane.setToolTipText(b ? null : Toolkit.i18nText("Fine-Design_Vcs_Server_Start_Hover"));
}
} }
private JPanel createSaveIntervalPane() { private JPanel createSaveIntervalPane() {

Loading…
Cancel
Save