Browse Source

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

newui
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(delayLabel);
autoCleanPane = createAutoCleanPane();
checkAutoScheduleStartAndUpdateStatus();
vcsEnableCheckBox.addChangeListener(new ChangeListener() {
@Override
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(autoCleanRetainIntervalComboBox);
autoCleanPane.add(new UILabel(i18nText("Fine-Design_Vcs_Auto_Clean_Last")));
checkAutoScheduleStartAndUpdateStatus();
autoCleanPane.setVisible(false);
return autoCleanPane;
}
@ -546,6 +546,9 @@ public class PreferencePane extends BasicPane {
useVcsAutoCleanScheduleCheckBox.setEnabled(b);
autoCleanIntervalComboBox.setEnabled(b);
autoCleanRetainIntervalComboBox.setEnabled(b);
if (autoCleanPane != null) {
autoCleanPane.setToolTipText(b ? null : Toolkit.i18nText("Fine-Design_Vcs_Server_Start_Hover"));
}
}
private JPanel createSaveIntervalPane() {

Loading…
Cancel
Save