Fix string lengths a little bit for installs

This commit is contained in:
Huntereb 2019-11-03 20:06:43 -05:00
parent ad388c412d
commit b3cb19760f
4 changed files with 4 additions and 4 deletions

View File

@ -124,7 +124,7 @@ namespace netInstStuff{
try {
for (unsigned int i = 0; i < ourUrlList.size(); i++) {
inst::ui::setTopInstInfoText("Installing " + inst::util::shortenString(inst::util::formatUrlString(ourUrlList[i]), 64, true) + "...");
inst::ui::setTopInstInfoText("Installing " + inst::util::shortenString(inst::util::formatUrlString(ourUrlList[i]), 48, true));
tin::install::nsp::HTTPNSP httpNSP(ourUrlList[i]);

View File

@ -92,7 +92,7 @@ namespace nspInstStuff {
try
{
for (unsigned int i = 0; i < ourNspList.size(); i++) {
inst::ui::setTopInstInfoText("Installing " + inst::util::shortenString(ourNspList[i].string().erase(0, 6), 64, true) + "...");
inst::ui::setTopInstInfoText("Installing " + inst::util::shortenString(ourNspList[i].string().erase(0, 6), 48, true));
bool isNsz = false;
if (ourNspList[i].extension() == ".nsz") {

View File

@ -110,7 +110,7 @@ namespace inst::ui {
void netInstPage::startInstall(bool urlMode) {
int dialogResult = -1;
if (netInstPage::selectedUrls.size() == 1) {
dialogResult = mainApp->CreateShowDialog("Where should " + inst::util::shortenString(inst::util::formatUrlString(netInstPage::selectedUrls[0]), 64, true) + " be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
dialogResult = mainApp->CreateShowDialog("Where should " + inst::util::shortenString(inst::util::formatUrlString(netInstPage::selectedUrls[0]), 48, true) + " be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
} else dialogResult = mainApp->CreateShowDialog("Where should the selected files be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
if (dialogResult == -1 && !urlMode) return;
else if (dialogResult == -1 && urlMode) {

View File

@ -67,7 +67,7 @@ namespace inst::ui {
int dialogResult = -1;
if (nspInstPage::selectedNsps.size() == 1) {
std::string ourNsp = nspInstPage::selectedNsps[0].string().erase(0, 6);
dialogResult = mainApp->CreateShowDialog("Where should " + inst::util::shortenString(ourNsp, 64, true) + " be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
dialogResult = mainApp->CreateShowDialog("Where should " + inst::util::shortenString(ourNsp, 48, true) + " be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
} else dialogResult = mainApp->CreateShowDialog("Where should the selected files be installed to?", "Press B to cancel", {"SD Card", "Internal Storage"}, false);
if (dialogResult == -1) return;
nspInstStuff::installNspFromFile(nspInstPage::selectedNsps, dialogResult);