From cbb220af059d7755bc64a0550e2c4d79785ca30a Mon Sep 17 00:00:00 2001 From: DuckSoft Date: Mon, 15 Jun 2020 05:16:59 +0800 Subject: [PATCH] added a hint for not configuring kernel --- core/Kernel.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/Kernel.cpp b/core/Kernel.cpp index f9b96a3..3c38fd1 100644 --- a/core/Kernel.cpp +++ b/core/Kernel.cpp @@ -2,6 +2,8 @@ #include "SimplePlugin.hpp" +#include + NaiveProxyKernel::NaiveProxyKernel(QObject *parent) : Qv2rayPlugin::QvPluginKernel(parent) { process.setProcessChannelMode(QProcess::MergedChannels); @@ -21,7 +23,7 @@ bool NaiveProxyKernel::StartKernel() const auto executablePath = pluginInstance->GetSettngs()["kernelPath"].toString(); if (!QFile::exists(executablePath)) { - emit OnKernelCrashed(tr("NaiveProxy kernel not found. Please configure in plugin settings.")); + QMessageBox::warning(nullptr, tr("Naive!"), tr("We cannot find your NaiveProxy kernel. Please configure it in the plugin settings.")); return false; }