From 09b19b4ec6796c83fb5e28a55ed5c29962130465 Mon Sep 17 00:00:00 2001 From: JoePfeiffer Date: Tue, 24 Jan 2023 09:23:18 -0700 Subject: [PATCH] Enable graphic editor selection in Preferences panel for UNIX-like (eg Linux) platforms not confined in a snap. --- .../gui/dialogs/preferences/GraphicsPreferencesPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swing/src/net/sf/openrocket/gui/dialogs/preferences/GraphicsPreferencesPanel.java b/swing/src/net/sf/openrocket/gui/dialogs/preferences/GraphicsPreferencesPanel.java index f2eed023d..65b12b145 100644 --- a/swing/src/net/sf/openrocket/gui/dialogs/preferences/GraphicsPreferencesPanel.java +++ b/swing/src/net/sf/openrocket/gui/dialogs/preferences/GraphicsPreferencesPanel.java @@ -145,7 +145,7 @@ public class GraphicsPreferencesPanel extends PreferencesPanel { * we will rely on using the xdg-open command which allows the user to pick * their preferred application. */ - if (SystemInfo.getPlatform() != Platform.UNIX && !SystemInfo.isConfined()) { + if (SystemInfo.getPlatform() != Platform.UNIX || !SystemInfo.isConfined()) { this.add(editorPrefPanel, "growx, span"); }