impr: Add help text to MCP server setting

This commit is contained in:
WerWolv
2025-12-24 14:00:26 +01:00
parent 1dba144fca
commit f760b1ba83
3 changed files with 6 additions and 3 deletions

View File

@@ -52,7 +52,7 @@ EXPORT_MODULE namespace hex {
return *this;
}
Interface& setTooltip(const std::string &tooltip) {
Interface& setTooltip(const UnlocalizedString &tooltip) {
m_tooltip = tooltip;
return *this;

View File

@@ -54,7 +54,8 @@
"hex.builtin.achievement.misc.download_from_store.name": "There's an app for that",
"hex.builtin.achievement.misc.download_from_store.desc": "Download any item from the Content Store",
"hex.builtin.background_service.network_interface": "Network Interface",
"hex.builtin.setting.general.mcp_server": "MCP Server support",
"hex.builtin.setting.general.mcp_server": "MCP Server",
"hex.builtin.setting.general.mcp_server.desc": "When enabled, AI clients can interact with ImHex while it's running. After enabling, simply add 'imhex --mcp' as an stdio MCP server to your AI client.",
"hex.builtin.background_service.auto_backup": "Auto Backup",
"hex.builtin.command.calc.desc": "Calculator",
"hex.builtin.command.convert.desc": "Unit conversion",
@@ -78,6 +79,7 @@
"hex.builtin.inspector.binary": "Binary",
"hex.builtin.inspector.bfloat16": "bfloat16",
"hex.builtin.inspector.bool": "bool",
"hex.builtin.inspector.bcd": "BCD",
"hex.builtin.inspector.custom_encoding": "Custom Encoding",
"hex.builtin.inspector.custom_encoding.change": "Select encoding",
"hex.builtin.inspector.custom_encoding.no_encoding": "No encoding selected",

View File

@@ -762,7 +762,8 @@ for (const auto &path : m_paths) {
ContentRegistry::Settings::add<Widgets::Checkbox>("hex.builtin.setting.general", "hex.builtin.setting.general.network", "hex.builtin.setting.general.network_interface", false);
ContentRegistry::Settings::add<Widgets::Checkbox>("hex.builtin.setting.general", "hex.builtin.setting.general.network", "hex.builtin.setting.general.mcp_server", false);
ContentRegistry::Settings::add<Widgets::Checkbox>("hex.builtin.setting.general", "hex.builtin.setting.general.network", "hex.builtin.setting.general.mcp_server", false)
.setTooltip("hex.builtin.setting.general.mcp_server.desc");
#if !defined(OS_WEB)
ContentRegistry::Settings::add<ServerContactWidget>("hex.builtin.setting.general", "hex.builtin.setting.general.network", "hex.builtin.setting.general.server_contact");