From 455aafd44268f184dad155fb47d3d88a4cfd8a26 Mon Sep 17 00:00:00 2001 From: tdjisdj <125038375+tdjisdj@users.noreply.github.com> Date: Fri, 9 Jun 2023 10:36:41 +0800 Subject: [PATCH] Fix set system proxy in macos (#636) --- ui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/mainwindow.cpp b/ui/mainwindow.cpp index 56ca2e3..7615302 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."),