Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions src/Plugins/Qt/qt_tm_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3037,12 +3037,14 @@ qt_tm_widget_rep::checkNetworkAvailable () {
QNetworkRequest request (testUrl);
QNetworkReply* reply= manager->head (request);

QObject::connect (reply, &QNetworkReply::finished, [this, reply] () {
bool success= (reply->error () == QNetworkReply::NoError);
reply->deleteLater ();
bool isLoggedIn= as_bool (call ("logged-in?"));
syncScmGuestNotification (!is_community_stem () && !isLoggedIn && success);
});
QObject::connect (
reply, &QNetworkReply::finished, [this, reply, manager] () {
bool success= (reply->error () == QNetworkReply::NoError);
reply->deleteLater ();
manager->deleteLater ();
bool isLoggedIn= as_bool (call ("logged-in?"));
syncScmGuestNotification (!is_community_stem () && !isLoggedIn && success);
});
}

// 检查版本更新,根据条件显示提示条
Expand Down
Loading