mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-21 11:20:49 +08:00
Merge pull request #604 from Qv2ray/dev-api-sys-warning
added a warning for innocent users turning off api subsystem
This commit is contained in:
commit
ff865c1fe7
@ -1157,7 +1157,15 @@ void PreferencesWindow::on_enableAPI_stateChanged(int arg1)
|
|||||||
{
|
{
|
||||||
LOADINGCHECK
|
LOADINGCHECK
|
||||||
NEEDRESTART
|
NEEDRESTART
|
||||||
|
|
||||||
CurrentConfig.apiConfig.enableAPI = arg1 == Qt::Checked;
|
CurrentConfig.apiConfig.enableAPI = arg1 == Qt::Checked;
|
||||||
|
if (arg1 == Qt::Unchecked)
|
||||||
|
{
|
||||||
|
const auto msgAPIDisableTitle = tr("Disabling API Subsystem");
|
||||||
|
const auto msgAPIDisableMsg = tr("Disabling API subsystem will also disable the statistics function of Qv2ray.") + NEWLINE + //
|
||||||
|
tr("Speed chart and traffic statistics will be disabled.");
|
||||||
|
QvMessageBoxWarn(this, msgAPIDisableTitle, msgAPIDisableMsg);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PreferencesWindow::on_updateChannelCombo_currentIndexChanged(int index)
|
void PreferencesWindow::on_updateChannelCombo_currentIndexChanged(int index)
|
||||||
|
@ -1734,6 +1734,18 @@ But could damage your server if improperly used.</source>
|
|||||||
For example, for updating subscriptions.</source>
|
For example, for updating subscriptions.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Disabling API Subsystem</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Disabling API subsystem will also disable the statistics function of Qv2ray.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Speed chart and traffic statistics will be disabled.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>QObject</name>
|
<name>QObject</name>
|
||||||
|
@ -2450,6 +2450,18 @@ For example, for updating subscriptions.</source>
|
|||||||
<translation>これらの設定はQv2ray自体のためのものです。
|
<translation>これらの設定はQv2ray自体のためのものです。
|
||||||
例えば、サブスクリプションの更新などです。</translation>
|
例えば、サブスクリプションの更新などです。</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Disabling API Subsystem</source>
|
||||||
|
<translation>APIサブシステムを無効</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Disabling API subsystem will also disable the statistics function of Qv2ray.</source>
|
||||||
|
<translation>APIサブシステムを無効にすると、Qv2rayの統計機能も無効になります。</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Speed chart and traffic statistics will be disabled.</source>
|
||||||
|
<translation>スピードチャートや交通統計は無効になります。</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>QObject</name>
|
<name>QObject</name>
|
||||||
|
@ -2349,6 +2349,18 @@ But could damage your server if improperly used.</source>
|
|||||||
For example, for updating subscriptions.</source>
|
For example, for updating subscriptions.</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Disabling API Subsystem</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Disabling API subsystem will also disable the statistics function of Qv2ray.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Speed chart and traffic statistics will be disabled.</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>QObject</name>
|
<name>QObject</name>
|
||||||
|
@ -2080,6 +2080,18 @@ For example, for updating subscriptions.</source>
|
|||||||
<translation>这些设定是针对 Qv2ray 本身的。
|
<translation>这些设定是针对 Qv2ray 本身的。
|
||||||
例如,用在更新订阅时。</translation>
|
例如,用在更新订阅时。</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Disabling API Subsystem</source>
|
||||||
|
<translation>禁用 API 子系统</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Disabling API subsystem will also disable the statistics function of Qv2ray.</source>
|
||||||
|
<translation>如果禁用 API 子系统,Qv2ray 的统计功能也会被一同禁用。</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Speed chart and traffic statistics will be disabled.</source>
|
||||||
|
<translation>速度图表和流量统计功能将不再可用。</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>QObject</name>
|
<name>QObject</name>
|
||||||
|
Loading…
Reference in New Issue
Block a user