refactor: screenSettingsDialog, do not set the initial style for name alias lineedits

This commit is contained in:
sithlord48 2025-12-24 10:01:34 -05:00 committed by Nick Bolton
parent b8b7799a47
commit 2cbe2c65e8

View file

@ -8,7 +8,6 @@
#include "ScreenSettingsDialog.h"
#include "ui_ScreenSettingsDialog.h"
#include "gui/Styles.h"
#include "gui/config/Screen.h"
#include "validators/AliasValidator.h"
#include "validators/ScreenNameValidator.h"
@ -16,7 +15,6 @@
#include <QMessageBox>
using namespace deskflow::gui;
using enum ScreenConfig::Modifier;
using enum ScreenConfig::SwitchCorner;
using enum ScreenConfig::Fix;
@ -32,9 +30,6 @@ ScreenSettingsDialog::ScreenSettingsDialog(QWidget *parent, Screen *screen, cons
ui->setupUi(this);
ui->buttonBox->button(QDialogButtonBox::Cancel)->setFocus();
ui->lblAliasError->setStyleSheet(kStyleErrorActiveLabel);
ui->lblNameError->setStyleSheet(kStyleErrorActiveLabel);
ui->lineNameEdit->setText(m_screen->name());
const auto valNameError = new validators::ValidationError(this, ui->lblNameError);