Skip to content

Commit

Permalink
remove log modification check box; raise version
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichFroebel committed May 22, 2020
1 parent a9f3d43 commit 10432a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ project.ext.ocOkapiPropertiesFile = projectDir.getPath() + "${File.separator}oc_
sourceCompatibility = 1.8
targetCompatibility = 1.8

version = '0.2.48'
version = '0.4.0'

wrapper {
gradleVersion = '6.4'
gradleVersion = '6.4.1'
}

// Allow retrieving the configuration values from environment variables as well.
Expand Down
17 changes: 2 additions & 15 deletions src/main/java/cmanager/gui/CopyLogDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import java.awt.event.ComponentEvent;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
Expand Down Expand Up @@ -101,16 +100,6 @@ public CopyLogDialog(
panelLogs.add(logPanel, gbc);
gbc.gridy++;

final GridBagConstraints gbcCheckBox = (GridBagConstraints) gbc.clone();
gbcCheckBox.weighty = 0;
gbcCheckBox.fill = 0;
gbcCheckBox.insets = new Insets(0, 10, 5, 0);

final JCheckBox checkBox = new JCheckBox("Use original log");
checkBox.setSelected(true);
panelLogs.add(checkBox, gbcCheckBox);
gbc.gridy++;

final GridBagConstraints gbc_button = (GridBagConstraints) gbc.clone();
gbc_button.weighty = 0;
gbc_button.fill = 0;
Expand All @@ -132,10 +121,8 @@ public void run() {
// contribute to shadow list
shadowList.postToShadowList(gc, oc);

// retrieve the new log text if requested
if (!checkBox.isSelected()) {
log.setText(logPanel.getLogText());
}
// retrieve the new log text
log.setText(logPanel.getLogText());

// copy the log
OKAPI.postLog(User.getOKAPIUser(), oc, log);
Expand Down

0 comments on commit 10432a2

Please sign in to comment.