mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 20:44:38 +03:00
Fix set system proxy in macos (#636)
This commit is contained in:
@@ -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."),
|
||||
|
||||
Reference in New Issue
Block a user