mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-08 11:31:43 +00:00
increase max string length for on-screen keyboard (closes https://github.com/HamletDuFromage/aio-switch-updater/issues/250)
This commit is contained in:
parent
345ecf8613
commit
9f3b00d28b
2 changed files with 3 additions and 3 deletions
|
@ -258,8 +258,8 @@ void AmsTab_Custom::AddLinkCreator()
|
|||
listItem->setHeight(LISTITEM_HEIGHT);
|
||||
listItem->getClickEvent()->subscribe([this, category](brls::View* view) {
|
||||
std::string title, link;
|
||||
brls::Swkbd::openForText([&title](std::string text) { title = text; }, "Enter title", "", 64, "", 0, "Submit", "Title");
|
||||
brls::Swkbd::openForText([&link](std::string text) { link = text; }, "Enter direct link", "", 64, "", 0, "Submit", "https://site/download.zip");
|
||||
brls::Swkbd::openForText([&title](std::string text) { title = text; }, "Enter title", "", 256, "", 0, "Submit", "Title");
|
||||
brls::Swkbd::openForText([&link](std::string text) { link = text; }, "Enter direct link", "", 256, "", 0, "Submit", "https://site/download.zip");
|
||||
auto links = util::getValueFromKey(this->custom_packs, category);
|
||||
links[title] = link;
|
||||
this->custom_packs[category] = links;
|
||||
|
|
|
@ -86,7 +86,7 @@ ToolsTab::ToolsTab(const std::string& tag, const nlohmann::ordered_json& payload
|
|||
brls::ListItem* browser = new brls::ListItem("menus/tools/browser"_i18n);
|
||||
browser->getClickEvent()->subscribe([](brls::View* view) {
|
||||
std::string url;
|
||||
if (brls::Swkbd::openForText([&url](std::string text) { url = text; }, "cheatslips.com e-mail", "", 64, "https://duckduckgo.com", 0, "Submit", "https://website.tld")) {
|
||||
if (brls::Swkbd::openForText([&url](std::string text) { url = text; }, "cheatslips.com e-mail", "", 256, "https://duckduckgo.com", 0, "Submit", "https://website.tld")) {
|
||||
std::string error = "";
|
||||
int at = appletGetAppletType();
|
||||
if (at == AppletType_Application) { // Running as a title
|
||||
|
|
Loading…
Reference in a new issue