mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-21 18:50:47 +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 {
|
||||
id: input
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -184,8 +184,6 @@ public slots:
|
|||
void setSearchString(const QString &s);
|
||||
QString searchString() const { return searchString_; }
|
||||
|
||||
bool hasCompletion() const { return rowCount() > 0; }
|
||||
|
||||
signals:
|
||||
void newSearchString(QString);
|
||||
|
||||
|
|
|
@ -390,8 +390,7 @@ InputBar::send()
|
|||
|
||||
auto wasEdit = !room->edit().isEmpty();
|
||||
|
||||
auto [commandName, args] = getCommandAndArgs();
|
||||
if (commandName.isNull())
|
||||
if (auto [commandName, args] = getCommandAndArgs(); commandName.isNull())
|
||||
message(text());
|
||||
else
|
||||
command(commandName, args);
|
||||
|
|
Loading…
Reference in a new issue