fix: Fix auto redirect persistance and GUI size

This commit is contained in:
Nova 2024-08-30 14:15:29 +03:30
parent 188bccde1f
commit 3271a13f4c
No known key found for this signature in database
GPG Key ID: 389787EC83F5D73A
2 changed files with 2 additions and 1 deletions

View File

@ -275,6 +275,7 @@ namespace NekoGui {
_add(new configItem("vpn_mtu", &vpn_mtu, itemType::integer));
_add(new configItem("vpn_ipv6", &vpn_ipv6, 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_insecure", &sub_insecure, itemType::boolean));
_add(new configItem("sub_auto_update", &sub_auto_update, itemType::integer));

View File

@ -19,9 +19,9 @@ DialogVPNSettings::DialogVPNSettings(QWidget *parent) : QDialog(parent), ui(new
#ifndef __linux__
ui->gso_enable->setVisible(false);
ui->auto_redir->setVisible(false);
ADJUST_SIZE
#endif
ui->strict_route->setChecked(NekoGui::dataStore->vpn_strict_route);
ADJUST_SIZE
}
DialogVPNSettings::~DialogVPNSettings() {