minor changes

This commit is contained in:
fourtf
2018-07-05 18:17:12 +02:00
parent 42550129e7
commit eeb514c444
8 changed files with 98 additions and 81 deletions
+4 -4
View File
@@ -103,7 +103,7 @@ Split::Split(QWidget *parent)
});
this->input.textChanged.connect([=](const QString &newText) {
if (!app->settings->hideEmptyInput) {
if (app->settings->showEmptyInput) {
return;
}
@@ -114,9 +114,9 @@ Split::Split(QWidget *parent)
}
});
app->settings->hideEmptyInput.connect(
[this](const bool &hideEmptyInput, auto) {
if (hideEmptyInput && this->input.getInputText().length() == 0) {
app->settings->showEmptyInput.connect(
[this](const bool &showEmptyInput, auto) {
if (!showEmptyInput && this->input.getInputText().length() == 0) {
this->input.hide();
} else {
this->input.show();