mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-17 12:34:37 +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) {
|
void MainWindow::neko_set_spmode_system_proxy(bool enable, bool save) {
|
||||||
if (enable != NekoGui::dataStore->spmode_system_proxy) {
|
if (enable != NekoGui::dataStore->spmode_system_proxy) {
|
||||||
if (enable) {
|
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)) {
|
if (!IS_NEKO_BOX && !IsValidPort(NekoGui::dataStore->inbound_http_port)) {
|
||||||
auto btn = QMessageBox::warning(this, software_name,
|
auto btn = QMessageBox::warning(this, software_name,
|
||||||
tr("Http inbound is not enabled, can't set system proxy."),
|
tr("Http inbound is not enabled, can't set system proxy."),
|
||||||
|
|||||||
Reference in New Issue
Block a user