Fix set system proxy in macos (#636)

This commit is contained in:
tdjisdj
2023-06-09 10:36:41 +08:00
committed by GitHub
parent c62d4384bc
commit 455aafd442

View File

@@ -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."),