mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-24 10:33:15 +08:00
fix: Fix auto redirect persistance and GUI size
This commit is contained in:
parent
188bccde1f
commit
3271a13f4c
@ -275,6 +275,7 @@ namespace NekoGui {
|
|||||||
_add(new configItem("vpn_mtu", &vpn_mtu, itemType::integer));
|
_add(new configItem("vpn_mtu", &vpn_mtu, itemType::integer));
|
||||||
_add(new configItem("vpn_ipv6", &vpn_ipv6, itemType::boolean));
|
_add(new configItem("vpn_ipv6", &vpn_ipv6, itemType::boolean));
|
||||||
_add(new configItem("vpn_strict_route", &vpn_strict_route, itemType::boolean));
|
_add(new configItem("vpn_strict_route", &vpn_strict_route, itemType::boolean));
|
||||||
|
_add(new configItem("auto_redirect", &auto_redirect, itemType::boolean));
|
||||||
_add(new configItem("sub_clear", &sub_clear, itemType::boolean));
|
_add(new configItem("sub_clear", &sub_clear, itemType::boolean));
|
||||||
_add(new configItem("sub_insecure", &sub_insecure, itemType::boolean));
|
_add(new configItem("sub_insecure", &sub_insecure, itemType::boolean));
|
||||||
_add(new configItem("sub_auto_update", &sub_auto_update, itemType::integer));
|
_add(new configItem("sub_auto_update", &sub_auto_update, itemType::integer));
|
||||||
|
|||||||
@ -19,9 +19,9 @@ DialogVPNSettings::DialogVPNSettings(QWidget *parent) : QDialog(parent), ui(new
|
|||||||
#ifndef __linux__
|
#ifndef __linux__
|
||||||
ui->gso_enable->setVisible(false);
|
ui->gso_enable->setVisible(false);
|
||||||
ui->auto_redir->setVisible(false);
|
ui->auto_redir->setVisible(false);
|
||||||
ADJUST_SIZE
|
|
||||||
#endif
|
#endif
|
||||||
ui->strict_route->setChecked(NekoGui::dataStore->vpn_strict_route);
|
ui->strict_route->setChecked(NekoGui::dataStore->vpn_strict_route);
|
||||||
|
ADJUST_SIZE
|
||||||
}
|
}
|
||||||
|
|
||||||
DialogVPNSettings::~DialogVPNSettings() {
|
DialogVPNSettings::~DialogVPNSettings() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user