From a3993268f402fa20068a7ea8c4cc96b7e2e8cf95 Mon Sep 17 00:00:00 2001 From: yw4z Date: Mon, 7 Sep 2026 14:09:33 +0300 Subject: [PATCH] add dots to configure button --- src/slic3r/GUI/Field.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Field.cpp b/src/slic3r/GUI/Field.cpp index 5d6d385825..5d926c1ce8 100644 --- a/src/slic3r/GUI/Field.cpp +++ b/src/slic3r/GUI/Field.cpp @@ -2476,7 +2476,7 @@ nlohmann::json plugin_overrides_as_json(const std::string& text) void PluginConfigField::BUILD() { - m_button = new ::Button(m_parent, _L("Configure")); + m_button = new ::Button(m_parent, _L("Configure") + dots); // ButtonType::Parameter gives the button the same height as the parameter fields above it. m_button->SetStyle(ButtonStyle::Regular, ButtonType::Parameter); @@ -2506,7 +2506,7 @@ void PluginConfigField::update_button_label() const nlohmann::json entries = plugin_overrides_as_json(m_json); const size_t count = entries.is_array() ? entries.size() : 0; - m_button->SetLabel(count == 0 ? _L("Configure") + m_button->SetLabel(count == 0 ? _L("Configure" + dots) : wxString::Format(_L("Configure (%d)"), int(count))); }