Skip to content

Commit 79c3adb

Browse files
committed
fix uninstall popup being unusable with too long mod names
1 parent ece2f9e commit 79c3adb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

loader/src/ui/mods/popups/ConfirmUninstallPopup.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bool ConfirmUninstallPopup::init(Mod* mod) {
1111
this->setTitle(fmt::format("Uninstall {}", mod->getName()));
1212

1313
auto text = TextArea::create(
14-
fmt::format("Are you sure you want to \n<cr>uninstall</c> <cy>{}</c>?", mod->getName()),
14+
fmt::format("Are you sure you want to \n<cr>uninstall</c> <cy>{:.100}</c>?", mod->getName()),
1515
"chatFont.fnt",
1616
1.f, m_size.width - 35,
1717
ccp(.5f, .5f), 20.f, false
@@ -53,14 +53,14 @@ void ConfirmUninstallPopup::onUninstall(CCObject*) {
5353
if (res) {
5454
FLAlertLayer::create(
5555
"Mod Uninstalled",
56-
m_mod->getName() + " has been uninstalled!",
56+
fmt::format("{:.400} has been uninstalled!", m_mod->getName()),
5757
"OK"
5858
)->show();
5959
}
6060
else {
6161
FLAlertLayer::create(
6262
"Error Uninstalling",
63-
"Error uninstalling " + m_mod->getName() + ": " + res.unwrapErr(),
63+
fmt::format("Error uninstalling {:.400}: {}", m_mod->getName(), res.unwrapErr()),
6464
"OK"
6565
)->show();
6666
}

0 commit comments

Comments
 (0)