Skip to content
This repository was archived by the owner on Aug 18, 2021. It is now read-only.

Commit cbb220a

Browse files
committed
added a hint for not configuring kernel
1 parent 0cbb507 commit cbb220a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/Kernel.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "SimplePlugin.hpp"
44

5+
#include <QMessageBox>
6+
57
NaiveProxyKernel::NaiveProxyKernel(QObject *parent) : Qv2rayPlugin::QvPluginKernel(parent)
68
{
79
process.setProcessChannelMode(QProcess::MergedChannels);
@@ -21,7 +23,7 @@ bool NaiveProxyKernel::StartKernel()
2123
const auto executablePath = pluginInstance->GetSettngs()["kernelPath"].toString();
2224
if (!QFile::exists(executablePath))
2325
{
24-
emit OnKernelCrashed(tr("NaiveProxy kernel not found. Please configure in plugin settings."));
26+
QMessageBox::warning(nullptr, tr("Naive!"), tr("We cannot find your NaiveProxy kernel. Please configure it in the plugin settings."));
2527
return false;
2628
}
2729

0 commit comments

Comments
 (0)