From 05e9758f36609c7a636b146f82a9fef0282a444a Mon Sep 17 00:00:00 2001 From: "neil.weinstock@gmail.com" Date: Sun, 10 Dec 2023 20:48:28 -0500 Subject: [PATCH] texture select combobox: show 20 items, change "From file..." to "Select file..." --- core/resources/l10n/messages.properties | 2 +- core/resources/l10n/messages_uk_UA.properties | 2 +- .../src/net/sf/openrocket/gui/configdialog/AppearancePanel.java | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/resources/l10n/messages.properties b/core/resources/l10n/messages.properties index 7da3ad017..1088b6678 100644 --- a/core/resources/l10n/messages.properties +++ b/core/resources/l10n/messages.properties @@ -2393,7 +2393,7 @@ PresetModel.lbl.partsLib = Parts Library PresetModel.lbl.partsLib.ttip = Select a preset model for this rocket component from a library of parts. DecalModel.lbl.select = -DecalModel.lbl.choose = From file\u2026 +DecalModel.lbl.choose = Select file\u2026 ! Export Decal Dialog ExportDecalDialog.title = Export Decal diff --git a/core/resources/l10n/messages_uk_UA.properties b/core/resources/l10n/messages_uk_UA.properties index e2c53e030..f39035f58 100644 --- a/core/resources/l10n/messages_uk_UA.properties +++ b/core/resources/l10n/messages_uk_UA.properties @@ -1799,7 +1799,7 @@ PresetModel.lbl.custompreset = Custom PresetModel.lbl.partsLib = Parts Library DecalModel.lbl.select = -DecalModel.lbl.choose = From file... +DecalModel.lbl.choose = Select file... ! Export Decal Dialog ExportDecalDialog.title = Export Decal diff --git a/swing/src/net/sf/openrocket/gui/configdialog/AppearancePanel.java b/swing/src/net/sf/openrocket/gui/configdialog/AppearancePanel.java index 823efb2dc..7efa38176 100644 --- a/swing/src/net/sf/openrocket/gui/configdialog/AppearancePanel.java +++ b/swing/src/net/sf/openrocket/gui/configdialog/AppearancePanel.java @@ -505,6 +505,7 @@ public class AppearancePanel extends JPanel { DecalModel decalModel = new DecalModel(panel, document, builder); JComboBox textureDropDown = new JComboBox(decalModel); + textureDropDown.setMaximumRowCount(20); // We need to add this action listener that triggers a decalModel update when the same item is selected, because // for multi-comp edits, the listeners' decals may not be updated otherwise