This commit is contained in:
arm64v8a
2023-05-23 12:04:18 +09:00
parent b1b67607f6
commit fbd2a3354c
4 changed files with 4 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
# NekoRay
# NekoRay / NekoBox For PC
Qt based cross-platform GUI proxy configuration manager (backend: v2ray / sing-box)

View File

@@ -151,11 +151,6 @@ int main(int argc, char* argv[]) {
":/nekoray",
":/icon",
});
#else
QIcon::setThemeSearchPaths(QStringList{
":/nekoray",
":/icon",
});
#endif
// icon for no theme

View File

@@ -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"});

View File

@@ -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();
},