From 8e65fb36c9b120a6843e4d0230c8e6558de59513 Mon Sep 17 00:00:00 2001 From: tdjisdj <125038375+tdjisdj@users.noreply.github.com> Date: Tue, 6 Jun 2023 20:48:59 +0800 Subject: [PATCH] Fix set system proxy in macos --- ui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/mainwindow.cpp b/ui/mainwindow.cpp index 56ca2e37f..761530241 100644 --- a/ui/mainwindow.cpp +++ b/ui/mainwindow.cpp @@ -719,7 +719,7 @@ void MainWindow::on_menu_exit_triggered() { void MainWindow::neko_set_spmode_system_proxy(bool enable, bool save) { if (enable != NekoGui::dataStore->spmode_system_proxy) { if (enable) { -#if defined(Q_OS_WIN) || defined(Q_OS_MACOS) +#if defined(Q_OS_WIN) if (!IS_NEKO_BOX && !IsValidPort(NekoGui::dataStore->inbound_http_port)) { auto btn = QMessageBox::warning(this, software_name, tr("Http inbound is not enabled, can't set system proxy."),