diff --git a/.ci/macos/Brewfile b/.ci/macos/Brewfile index 7e9687c7711296d3c33a940b2252da0e35757823..e7a6237432e978f3322667d0744952e7d3ac939a 100644 --- a/.ci/macos/Brewfile +++ b/.ci/macos/Brewfile @@ -1,12 +1,12 @@ tap "nlohmann/json" +brew "python3" brew "pkg-config" brew "clang-format" brew "cmake" brew "ninja" brew "openssl" brew "qt5" -brew "python3" brew "nlohmann_json" brew "gstreamer" brew "gst-plugins-base" diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8a6775db1bcaa638e59cb724c12467261dbf55d9..4fa41d37b0bb84c589bf3b0d2075f68494c6f67e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -52,7 +52,8 @@ build-macos: tags: [macos] before_script: - brew update - - brew bundle --file=./.ci/macos/Brewfile + - brew reinstall --force python3 + - brew bundle --file=./.ci/macos/Brewfile --force --cleanup - pip3 install dmgbuild script: - export PATH=/usr/local/opt/qt/bin/:${PATH} diff --git a/io.github.NhekoReborn.Nheko.json b/io.github.NhekoReborn.Nheko.json index 49e923119eddaafde3ef39f275e6e9031cee83ad..7aba130be677535fabe69705b9575b6d632de910 100644 --- a/io.github.NhekoReborn.Nheko.json +++ b/io.github.NhekoReborn.Nheko.json @@ -125,16 +125,6 @@ } ] }, - { - "name": "sodium", - "sources": [ - { - "sha256": "6f504490b342a4f8a4c4a02fc9b866cbef8622d5df4e5452b46be121e46636c1", - "type": "archive", - "url": "https://github.com/jedisct1/libsodium/releases/download/1.0.18-RELEASE/libsodium-1.0.18.tar.gz" - } - ] - }, { "build-commands": [ "./bootstrap.sh --with-libraries=thread,system,iostreams --prefix=/app", diff --git a/src/LoginPage.cpp b/src/LoginPage.cpp index 39d0f9d6d2c35c3d531d116beaeef5f2ac17968b..dba5ba5191b75a1d16b45f5e3110f54a510cea16 100644 --- a/src/LoginPage.cpp +++ b/src/LoginPage.cpp @@ -315,14 +315,14 @@ LoginPage::checkHomeserverVersion() if (err || flows.flows.empty()) emit versionOkCb(LoginMethod::Password); - LoginMethod loginMethod = LoginMethod::Password; + LoginMethod loginMethod_ = LoginMethod::Password; for (const auto &flow : flows.flows) { if (flow.type == mtx::user_interactive::auth_types::sso) { - loginMethod = LoginMethod::SSO; + loginMethod_ = LoginMethod::SSO; break; } } - emit versionOk(loginMethod); + emit versionOk(loginMethod_); }); }); } diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp index 4ca3be493f3d3beb76d134c00a8eb2ace7f40042..7c7ef9abe3176f71db76158697c7bd3348b9ebdc 100644 --- a/src/UserSettingsPage.cpp +++ b/src/UserSettingsPage.cpp @@ -54,7 +54,7 @@ QSharedPointer<UserSettings> UserSettings::instance_; UserSettings::UserSettings() { - connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, [this]() { + connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, []() { instance_.clear(); }); }