mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
Work around clazy claiming we connect a lambda
This commit is contained in:
parent
328613eb4b
commit
c67f301f8b
3 changed files with 9 additions and 4 deletions
|
@ -46,7 +46,7 @@ build-clazy:
|
|||
TRAVIS_OS_NAME: linux
|
||||
before_script:
|
||||
- echo -e "\e[0Ksection_start:`date +%s`:install_deps[collapsed=true]\r\e[0K\e[1m\e[95mInstalling apk dependencies"
|
||||
- apk add asciidoctor cmake cmark-dev gst-plugins-bad-dev gst-plugins-base-dev gstreamer-dev lmdb-dev lmdbxx nlohmann-json olm-dev openssl-dev qt6-qtbase-dev qt6-qtdeclarative-dev qt6-qtmultimedia-dev qt6-qtsvg-dev qt6-qttools-dev samurai spdlog-dev xcb-util-wm-dev zlib-dev ccache curl-dev libevent-dev meson clazy clang16 gcc musl-dev git re2-dev libsecret-dev clang16
|
||||
- apk add asciidoctor cmake cmark-dev gst-plugins-bad-dev gst-plugins-base-dev gstreamer-dev lmdb-dev lmdbxx nlohmann-json olm-dev openssl-dev qt6-qtbase-dev qt6-qtdeclarative-dev qt6-qtmultimedia-dev qt6-qtsvg-dev qt6-qttools-dev samurai spdlog-dev xcb-util-wm-dev zlib-dev ccache curl-dev libevent-dev meson clazy clang16 gcc musl-dev git re2-dev libsecret-dev
|
||||
- echo -e "\e[0Ksection_end:`date +%s`:install_deps\r\e[0K"
|
||||
script:
|
||||
- export PATH="/usr/lib/ccache:${PATH}"
|
||||
|
|
|
@ -24,11 +24,12 @@ SelfVerificationStatus::SelfVerificationStatus(QObject *o)
|
|||
: QObject(o)
|
||||
{
|
||||
connect(ChatPage::instance(), &ChatPage::contentLoaded, this, [this] {
|
||||
// We connect INSIDE a lambda, not A lambda...
|
||||
connect(cache::client(),
|
||||
&Cache::selfVerificationStatusChanged,
|
||||
this,
|
||||
&SelfVerificationStatus::invalidate,
|
||||
Qt::UniqueConnection);
|
||||
Qt::UniqueConnection); // clazy:exclude=lambda-unique-connection
|
||||
cache::client()->markUserKeysOutOfDate({http::client()->user_id().to_string()});
|
||||
});
|
||||
|
||||
|
|
|
@ -271,11 +271,13 @@ RoomlistModel::addRoom(const QString &room_id, bool suppressInsertNotification)
|
|||
{
|
||||
if (!models.contains(room_id)) {
|
||||
// ensure we get read status updates and are only connected once
|
||||
// WORKAROUND(Nico): This is not a lambda, but clazy on alpine currently doesn't
|
||||
// believe us...
|
||||
connect(cache::client(),
|
||||
&Cache::roomReadStatus,
|
||||
this,
|
||||
&RoomlistModel::updateReadStatus,
|
||||
Qt::UniqueConnection);
|
||||
Qt::UniqueConnection); // clazy:exclude=lambda-unique-connection
|
||||
|
||||
QSharedPointer<TimelineModel> newRoom(new TimelineModel(manager, room_id));
|
||||
newRoom->setDecryptDescription(ChatPage::instance()->userSettings()->decryptSidebar());
|
||||
|
@ -529,11 +531,13 @@ RoomlistModel::sync(const mtx::responses::Sync &sync_)
|
|||
addRoom(qroomid);
|
||||
const auto &room_model = models.value(qroomid);
|
||||
|
||||
// WORKAROUND(Nico): This is not a lambda, but clazy on alpine currently doesn't
|
||||
// believe us
|
||||
connect(room_model.data(),
|
||||
&TimelineModel::newCallEvent,
|
||||
ChatPage::instance()->callManager(),
|
||||
&CallManager::syncEvent,
|
||||
Qt::UniqueConnection);
|
||||
Qt::UniqueConnection); // clazy:exclude=lambda-unique-connection
|
||||
|
||||
room_model->sync(room);
|
||||
|
||||
|
|
Loading…
Reference in a new issue