mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
Clean up code
This commit is contained in:
parent
4746fcd16f
commit
c566a62541
2 changed files with 1 additions and 16 deletions
|
@ -172,19 +172,6 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// delegate: RowLayout {
|
|
||||||
// spacing: 10
|
|
||||||
|
|
||||||
// Avatar {
|
|
||||||
// url: model.avatarUrl
|
|
||||||
// width: 20
|
|
||||||
// height: width
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Label {
|
|
||||||
// text: model.displayName + " (" + model.mxid + ")"
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,7 @@ InviteesModel::addUser(QString mxid)
|
||||||
beginInsertRows(QModelIndex(), invitees_.count(), invitees_.count());
|
beginInsertRows(QModelIndex(), invitees_.count(), invitees_.count());
|
||||||
|
|
||||||
auto invitee = new Invitee{mxid, this};
|
auto invitee = new Invitee{mxid, this};
|
||||||
connect(invitee, &Invitee::userInfoLoaded, this, [this]() {
|
connect(invitee, &Invitee::userInfoLoaded, this, [this]() { endInsertRows(); });
|
||||||
endInsertRows();
|
|
||||||
});
|
|
||||||
|
|
||||||
invitees_.push_back(invitee);
|
invitees_.push_back(invitee);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue