diff --git a/README.md b/README.md index 6ae406a..9aaa542 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# NekoRay +# NekoRay / NekoBox For PC Qt based cross-platform GUI proxy configuration manager (backend: v2ray / sing-box) diff --git a/main/main.cpp b/main/main.cpp index 6ceb0d1..edb9506 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -151,11 +151,6 @@ int main(int argc, char* argv[]) { ":/nekoray", ":/icon", }); -#else - QIcon::setThemeSearchPaths(QStringList{ - ":/nekoray", - ":/icon", - }); #endif // icon for no theme diff --git a/rpc/gRPC.cpp b/rpc/gRPC.cpp index 7d043a7..7b7f340 100644 --- a/rpc/gRPC.cpp +++ b/rpc/gRPC.cpp @@ -71,7 +71,9 @@ namespace QtGrpc { QNetworkRequest request(callUrl); // request.setAttribute(QNetworkRequest::CacheSaveControlAttribute, false); // request.setAttribute(QNetworkRequest::CacheLoadControlAttribute, QNetworkRequest::AlwaysNetwork); +#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0) request.setAttribute(QNetworkRequest::Http2DirectAttribute, true); +#endif request.setHeader(QNetworkRequest::ContentTypeHeader, QLatin1String{"application/grpc"}); request.setRawHeader("Cache-Control", "no-store"); request.setRawHeader(GrpcAcceptEncodingHeader, QByteArray{"identity,deflate,gzip"}); diff --git a/ui/mainwindow_grpc.cpp b/ui/mainwindow_grpc.cpp index f9a6fd0..03b03fa 100644 --- a/ui/mainwindow_grpc.cpp +++ b/ui/mainwindow_grpc.cpp @@ -287,7 +287,7 @@ void MainWindow::neko_start(int _id) { if (!NekoGui::dataStore->core_running) { runOnUiThread( [=] { - show_log_impl("Try to start the config, but the core has not listened to the grpc port, so restart it..."); + MW_show_log("Try to start the config, but the core has not listened to the grpc port, so restart it..."); core_process->start_profile_when_core_is_up = ent->id; core_process->Restart(); },