mirror of
https://github.com/HamletDuFromage/aio-switch-updater.git
synced 2024-11-09 12:01:44 +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->setHeight(LISTITEM_HEIGHT);
|
||||||
listItem->getClickEvent()->subscribe([this, category](brls::View* view) {
|
listItem->getClickEvent()->subscribe([this, category](brls::View* view) {
|
||||||
std::string title, link;
|
std::string title, link;
|
||||||
brls::Swkbd::openForText([&title](std::string text) { title = text; }, "Enter title", "", 64, "", 0, "Submit", "Title");
|
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", "", 64, "", 0, "Submit", "https://site/download.zip");
|
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);
|
auto links = util::getValueFromKey(this->custom_packs, category);
|
||||||
links[title] = link;
|
links[title] = link;
|
||||||
this->custom_packs[category] = links;
|
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);
|
brls::ListItem* browser = new brls::ListItem("menus/tools/browser"_i18n);
|
||||||
browser->getClickEvent()->subscribe([](brls::View* view) {
|
browser->getClickEvent()->subscribe([](brls::View* view) {
|
||||||
std::string url;
|
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 = "";
|
std::string error = "";
|
||||||
int at = appletGetAppletType();
|
int at = appletGetAppletType();
|
||||||
if (at == AppletType_Application) { // Running as a title
|
if (at == AppletType_Application) { // Running as a title
|
||||||
|
|
Loading…
Reference in a new issue