Clean up the string type in RequestCallback - somehow was both char* and std::string????

Might be related to #21695
This commit is contained in:
Henrik Rydgård committed 2026-05-18 14:16:34 +02:00
1 parent f4e52d5db5
commit cc0ece038c
19 files changed
+55 -54

No files matched your search

+2 -2
View File
@@ -114,7 +114,7 @@ void ChatMenu::OnAskForChatMessage(UI::EventParams &e) {
using namespace UI;
if (System_GetPropertyBool(SYSPROP_HAS_TEXT_INPUT_DIALOG)) {
System_InputBoxGetString(token_, n->T("Chat"), "", false, [](const std::string &value, int) {
System_InputBoxGetString(token_, n->T("Chat"), "", false, [](std::string_view value, int) {
sendChat(value);
});
} else {
@@ -183,7 +183,7 @@ void ChatMenu::Update() {
// Could remove the fullscreen check here, it works now.
auto n = GetI18NCategory(I18NCat::NETWORKING);
if (promptInput_ && g_Config.bBypassOSKWithKeyboard && !g_Config.bFullScreen) {
System_InputBoxGetString(token_, n->T("Chat"), n->T("Chat Here"), false, [](const std::string &value, int) {
System_InputBoxGetString(token_, n->T("Chat"), n->T("Chat Here"), false, [](std::string_view value, int) {
sendChat(value);
});
promptInput_ = false;