Skip to content

Commit

Permalink
Avoid empty config dialog and empty GTP console (featurecat#616) (fea…
Browse files Browse the repository at this point in the history
…turecat#642)

* Avoid empty config dialog on Linux (featurecat#616)
* Avoid empty GTP console (featurecat#616)
  • Loading branch information
kaorahi authored and zsalch committed Nov 4, 2019
1 parent 3bbde1d commit 4cd7085
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/main/java/featurecat/lizzie/gui/ConfigDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ public class ConfigDialog extends JDialog {
public ConfigDialog() {
setTitle(resourceBundle.getString("LizzieConfig.title.config"));
setModalityType(ModalityType.APPLICATION_MODAL);
setType(Type.POPUP);
if (isWindows()) { // avoid suspicious behavior on Linux (#616)
setType(Type.POPUP);
}
setBounds(100, 100, 661, 716);
getContentPane().setLayout(new BorderLayout());
JPanel buttonPane = new JPanel();
Expand Down
1 change: 0 additions & 1 deletion src/main/java/featurecat/lizzie/gui/GtpConsolePane.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public GtpConsolePane(Window owner) {
scrollPane.setViewportView(console);
getRootPane().setBorder(BorderFactory.createEmptyBorder());
getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
setVisible(true);

txtCommand.addActionListener(e -> postCommand(e));
}
Expand Down

0 comments on commit 4cd7085

Please sign in to comment.