diff --git a/translations/fa_IR.ts b/translations/fa_IR.ts index 1ff4ed3..f84cea0 100644 --- a/translations/fa_IR.ts +++ b/translations/fa_IR.ts @@ -145,10 +145,6 @@ Ignore TLS errors when updating subscription هنگام به‌روزرسانی اشتراک، خطاهای TLS را نادیده گرفته شود - - Switch core - سوئیچ هسته - Enable hook.js فعال سازی hook.js @@ -157,14 +153,6 @@ Advanced system proxy settings. Please select a format. تنظیمات پیشرفته پروکسی سیستم. لطفا یک قالب را انتخاب کنید. - - Confirmation - تائیدیه - - - Switching the core to %1, click "Yes" to complete the switch and the program will restart. This feature may be unstable, please do not switch frequently. - هسته به 1% تغییر میابد، روی "Yes" کلیک کنید تا تغییر پایان یابد و برنامه ریستارت شود. این قابلیت ممکن است پایدار نباشد، لطفا مکررا تعویض نکنید - Please select a PNG file. لطفاً یک فایل PNG انتخاب کنید. diff --git a/translations/ru_RU.ts b/translations/ru_RU.ts index 031ecc3..389be70 100644 --- a/translations/ru_RU.ts +++ b/translations/ru_RU.ts @@ -143,10 +143,6 @@ Core Options Параметры ядра - - Switch core - Выбор ядра - Extra Core Дополнительные ядра @@ -187,14 +183,6 @@ Please select the core name. Выберите имя ядра. - - Confirmation - Подтверждение - - - Switching the core to %1, click "Yes" to complete the switch and the program will restart. This feature may be unstable, please do not switch frequently. - Переключаем ядро на %1, нажмите "Да" для изменения и перезапуска программы. Эта функция может быть нестабильной, поэтому, пожалуйста, не переключайте ядро часто. - Please select a PNG file. Выберите PNG файл diff --git a/translations/zh_CN.ts b/translations/zh_CN.ts index 956da7c..2f6c0e0 100644 --- a/translations/zh_CN.ts +++ b/translations/zh_CN.ts @@ -143,18 +143,6 @@ Cancel 取消 - - Switch core - 切换核心 - - - Confirmation - 确认 - - - Switching the core to %1, click "Yes" to complete the switch and the program will restart. This feature may be unstable, please do not switch frequently. - 将核心切换到 %1。点击 "是" 完成切换,程序将重新启动。此功能可能不稳定,请不要频繁切换。 - System proxy format 系统代理格式 diff --git a/ui/dialog_basic_settings.cpp b/ui/dialog_basic_settings.cpp index bcff7e9..009f310 100644 --- a/ui/dialog_basic_settings.cpp +++ b/ui/dialog_basic_settings.cpp @@ -217,33 +217,6 @@ DialogBasicSettings::DialogBasicSettings(QWidget *parent) } }); - // switch core - ui->switch_core_v2ray->setChecked(!IS_NEKO_BOX); - ui->switch_core_sing_box->setChecked(IS_NEKO_BOX); - auto switch_core_on_click = [=] { - int neko_core_new; - if (sender() == ui->switch_core_sing_box) { - if (IS_NEKO_BOX) return; - neko_core_new = NekoGui::CoreType::SING_BOX; - } else { - if (!IS_NEKO_BOX) return; - neko_core_new = NekoGui::CoreType::V2RAY; - } - QString core_name_new = dynamic_cast(sender())->text(); - if (QMessageBox::question(this, tr("Confirmation"), - tr("Switching the core to %1, click \"Yes\" to complete the switch and the program will restart. This feature may be unstable, please do not switch frequently.") - .arg(core_name_new)) == QMessageBox::StandardButton::Yes) { - QFile file; - file.setFileName("groups/coreType"); - file.open(QIODevice::ReadWrite | QIODevice::Truncate); - file.write(Int2String(neko_core_new).toUtf8()); - file.close(); - MW_dialog_message("", "RestartProgram"); - } - }; - connect(ui->switch_core_v2ray, &QRadioButton::clicked, this, switch_core_on_click); - connect(ui->switch_core_sing_box, &QRadioButton::clicked, this, switch_core_on_click); - // Mux D_LOAD_INT(mux_concurrency) D_LOAD_COMBO_STRING(mux_protocol) diff --git a/ui/dialog_basic_settings.ui b/ui/dialog_basic_settings.ui index 2fe47e3..0ef331a 100644 --- a/ui/dialog_basic_settings.ui +++ b/ui/dialog_basic_settings.ui @@ -689,55 +689,6 @@ - - - - Switch core - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Xray - - - - - - - sing-box - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - @@ -758,8 +709,8 @@ 0 0 - 198 - 58 + 632 + 299