refactor: ActionDialog, Simplify keySequenceChanged logic
This commit is contained in:
parent
4e913a90eb
commit
1386ac91dc
1 changed files with 2 additions and 7 deletions
|
|
@ -107,13 +107,8 @@ void ActionDialog::accept()
|
||||||
|
|
||||||
void ActionDialog::keySequenceChanged()
|
void ActionDialog::keySequenceChanged()
|
||||||
{
|
{
|
||||||
if (ui->keySequenceWidget->keySequence().isMouseButton()) {
|
ui->m_pGroupBoxScreens->setEnabled(!ui->keySequenceWidget->keySequence().isMouseButton());
|
||||||
ui->m_pGroupBoxScreens->setEnabled(false);
|
ui->m_pListScreens->setEnabled(!ui->keySequenceWidget->keySequence().isMouseButton());
|
||||||
ui->m_pListScreens->setEnabled(false);
|
|
||||||
} else {
|
|
||||||
ui->m_pGroupBoxScreens->setEnabled(true);
|
|
||||||
ui->m_pListScreens->setEnabled(true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ActionDialog::~ActionDialog() = default;
|
ActionDialog::~ActionDialog() = default;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue