chore: rename value

This commit is contained in:
x-tools-author 2025-05-28 09:54:42 +08:00
parent 9246634f49
commit fd7bebf04c
2 changed files with 3 additions and 3 deletions

View File

@ -304,7 +304,7 @@ void Page::appendOutputControl(QWidget *widget)
void Page::hideChartsWidgets()
{
m_enableChars = false;
m_enableCharts = false;
ui->toolButtonCharts->setVisible(false);
ui->widgetCharts->setVisible(false);
ui->widgetChartsController->setVisible(false);
@ -552,7 +552,7 @@ void Page::onBytesRead(const QByteArray &bytes, const QString &from)
outputText(bytes, from, true);
#ifdef X_ENABLE_CHARTS
if (m_enableChars) {
if (m_enableCharts) {
m_chartsView->inputBytes(bytes);
}
#endif

View File

@ -122,6 +122,6 @@ private:
QSettings *m_settings;
#ifdef X_ENABLE_CHARTS
ChartsView *m_chartsView;
bool m_enableChars{true};
bool m_enableCharts{true};
#endif
};