From 39435f137065668a695f95e3cbea7cfb83e84373 Mon Sep 17 00:00:00 2001 From: Syping Date: Sun, 12 Apr 2026 16:58:23 +0200 Subject: [PATCH] translator_dialog: hide api key --- src/gui/translator_dialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/translator_dialog.cpp b/src/gui/translator_dialog.cpp index d88fb83..cbc921a 100644 --- a/src/gui/translator_dialog.cpp +++ b/src/gui/translator_dialog.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include "translator_dialog.h" using namespace bot::gui; @@ -135,8 +136,9 @@ translator_dialog::translator_dialog(Gtk::Window &parent, const std::string &tra auto apikey_label = Gtk::make_managed("API Key"); apikey_box->append(*apikey_label); - auto apikey_entry = Gtk::make_managed(); + auto apikey_entry = Gtk::make_managed(); apikey_entry->set_hexpand(true); + apikey_entry->set_show_peek_icon(true); auto json_apiKey = m_json.find("apiKey"); if (json_apiKey != m_json.end()) apikey_entry->set_text(static_cast(*json_apiKey));