mirror of
https://github.com/AntiMicroX/antimicrox.git
synced 2025-12-23 23:29:25 -05:00
refactor: Limit number of unnecessary logs
This commit is contained in:
committed by
Paweł Kotiuk
parent
1c07caf04b
commit
88c61c9396
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user