Move some variables into const.hpp

Clean up some code in the AccountManager
This commit is contained in:
Rasmus Karlsson
2017-12-19 16:13:02 +01:00
parent 324dfc9ee9
commit be3c85d72d
7 changed files with 49 additions and 25 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
#include "widgets/settingsdialog.hpp"
#include "accountmanager.hpp"
#include "const.hpp"
#include "debug/log.hpp"
#include "twitch/twitchmessagebuilder.hpp"
#include "twitch/twitchuser.hpp"
@@ -130,7 +131,7 @@ QVBoxLayout *SettingsDialog::createAccountsTab()
connect(removeButton, &QPushButton::clicked, [this]() {
qDebug() << "TODO: Implement"; //
auto selectedUser = this->ui.accountSwitchWidget->currentItem()->text();
if (selectedUser == " - anonymous - ") {
if (selectedUser == ANONYMOUS_USERNAME_LABEL) {
// Do nothing
return;
}