This commit is contained in:
Kieran Moy 2024-05-05 09:52:45 +00:00 committed by GitHub
commit dd819a14c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -284,6 +284,10 @@ void MainWindow::neko_start(int _id) {
if (NekoGui::dataStore->prepare_exit) return;
auto ents = get_now_selected_list();
if (IS_NEKO_BOX_INTERNAL_TUN)
StopVPNProcess();
auto ent = (_id < 0 && !ents.isEmpty()) ? ents.first() : NekoGui::profileManager->GetProfile(_id);
if (ent == nullptr) return;