From 66c9e174dec0caa410a33e430bf01f94650ec8b5 Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Wed, 4 Jun 2025 19:49:00 +0000 Subject: Remove the blank space left behind with removal of the "Switch" button for launcher users Pre: ![empty_space](/uploads/7690f23cf4e77215be90bf3bd0aedb2c/empty_space.png) Post: ![empty_space_000](/uploads/52176bb12c0b542b6aff393cccad44a6/empty_space_000.png) **** mana/plus!183 --- src/gui/windows/charselectdialog.cpp | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/gui/windows/charselectdialog.cpp b/src/gui/windows/charselectdialog.cpp index 481d34471..66e7a886d 100644 --- a/src/gui/windows/charselectdialog.cpp +++ b/src/gui/windows/charselectdialog.cpp @@ -102,15 +102,11 @@ CharSelectDialog::CharSelectDialog(LoginData &data) : placer = getPlacer(0, 0); // disable logout using -S + int row = 0; if (!settings.options.uniqueSession) - { - placer(0, 0, mSwitchLoginButton, 1, 1); - } - int n = 1; - placer(n, 0, mChangePasswordButton, 1, 1); - n ++; - placer(n, 0, mDeleteButton, 1, 1); - n ++; + placer(row++, 0, mSwitchLoginButton, 1, 1); + placer(row++, 0, mChangePasswordButton, 1, 1); + placer(row++, 0, mDeleteButton, 1, 1); #ifdef TMWA_SUPPORT if (Net::getNetworkType() != ServerType::TMWATHENA) #endif @@ -121,8 +117,7 @@ CharSelectDialog::CharSelectDialog(LoginData &data) : "rename", BUTTON_SKIN, this); - placer(n, 0, mRenameButton, 1, 1); - n ++; + placer(row++, 0, mRenameButton, 1, 1); } #ifdef TMWA_SUPPORT if (serverFeatures->havePincode()) @@ -134,11 +129,9 @@ CharSelectDialog::CharSelectDialog(LoginData &data) : "changepin", BUTTON_SKIN, this); - placer(n, 0, mChangePinButton, 1, 1); - n ++; + placer(row++, 0, mChangePinButton, 1, 1); } - placer(n, 0, mInfoButton, 1, 1); - n ++; + placer(row++, 0, mInfoButton, 1, 1); for (int i = 0; i < CAST_S32(mLoginData->characterSlots); i++) { -- cgit v1.2.3-70-g09d2