diff options
author | Fedja Beader <fedja@protonmail.ch> | 2025-06-04 19:49:00 +0000 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2025-06-04 19:49:00 +0000 |
commit | 66c9e174dec0caa410a33e430bf01f94650ec8b5 (patch) | |
tree | fa42be66fa2c60a16d9c7e8c573a72c7ed2a76ec /src | |
parent | fdeda0cf5a848921a34746d39029b99c296f9bf4 (diff) | |
download | manaplus-66c9e174dec0caa410a33e430bf01f94650ec8b5.tar.gz manaplus-66c9e174dec0caa410a33e430bf01f94650ec8b5.tar.bz2 manaplus-66c9e174dec0caa410a33e430bf01f94650ec8b5.tar.xz manaplus-66c9e174dec0caa410a33e430bf01f94650ec8b5.zip |
Remove the blank space left behind with removal of the "Switch" button for launcher users
Pre: 
Post: 
****
mana/plus!183
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/charselectdialog.cpp | 21 |
1 files 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++) { |