mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Simplify code a bit
This commit is contained in:
parent
22ac5d861e
commit
b4f8d4947f
3 changed files with 1 additions and 5 deletions
|
@ -167,7 +167,6 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
MessageInput {
|
MessageInput {
|
||||||
id: input
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -184,8 +184,6 @@ public slots:
|
||||||
void setSearchString(const QString &s);
|
void setSearchString(const QString &s);
|
||||||
QString searchString() const { return searchString_; }
|
QString searchString() const { return searchString_; }
|
||||||
|
|
||||||
bool hasCompletion() const { return rowCount() > 0; }
|
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void newSearchString(QString);
|
void newSearchString(QString);
|
||||||
|
|
||||||
|
|
|
@ -390,8 +390,7 @@ InputBar::send()
|
||||||
|
|
||||||
auto wasEdit = !room->edit().isEmpty();
|
auto wasEdit = !room->edit().isEmpty();
|
||||||
|
|
||||||
auto [commandName, args] = getCommandAndArgs();
|
if (auto [commandName, args] = getCommandAndArgs(); commandName.isNull())
|
||||||
if (commandName.isNull())
|
|
||||||
message(text());
|
message(text());
|
||||||
else
|
else
|
||||||
command(commandName, args);
|
command(commandName, args);
|
||||||
|
|
Loading…
Reference in a new issue