mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-21 11:20:49 +08:00
add warning when users switch off api subsystem
This commit is contained in:
parent
b76e5822c3
commit
7d2bbd9e7b
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user