refactor: Limit number of unnecessary logs

This commit is contained in:
Paweł Kotiuk
2022-08-06 07:50:01 +02:00
committed by Paweł Kotiuk
parent 1c07caf04b
commit 88c61c9396
2 changed files with 5 additions and 13 deletions

View File

@@ -3581,12 +3581,7 @@ void JoyButton::setActionName(QString tempName)
}
}
QString JoyButton::getActionName()
{
qDebug() << "Action name is: " << actionName;
return actionName;
}
QString JoyButton::getActionName() { return actionName; }
void JoyButton::setButtonName(QString tempName)
{

View File

@@ -22,8 +22,8 @@
#include "joybuttontypes/joycontrolstickbutton.h"
#include "joybuttontypes/joycontrolstickmodifierbutton.h"
#include "joycontrolstick.h"
#include "logger.h"
#include <QDebug>
#include <QMenu>
#include <QWidget>
@@ -100,20 +100,17 @@ QString JoyControlStickButtonPushButton::generateLabel()
{
if (!button->getActionName().isEmpty() && ifDisplayNames())
{
qDebug() << "Action name was not empty";
temp = button->getActionName().replace("&", "&&");
DEBUG() << "Name of action for pushed stick button: " << temp << " (Action name was not empty)";
} else
{
qDebug() << "Action name was empty";
temp = button->getCalculatedActiveZoneSummary().replace("&", "&&");
DEBUG() << "Name of action for pushed stick button: " << temp << " (Action name was empty)";
}
}
qDebug() << "Here is name of action for pushed stick button: " << temp;
return temp;
}