mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
fix: sing-box loglevel
This commit is contained in:
@@ -55,6 +55,16 @@ DialogBasicSettings::DialogBasicSettings(QWidget *parent)
|
||||
|
||||
// Common
|
||||
|
||||
if (IS_NEKO_BOX) {
|
||||
ui->groupBox_mux->hide();
|
||||
ui->groupBox_http->hide();
|
||||
ui->inbound_socks_port_l->setText(ui->inbound_socks_port_l->text().replace("Socks", "Mixed"));
|
||||
ui->hlayout_l2->addWidget(ui->groupBox_log);
|
||||
ui->log_level->addItems(QString("trace debug info warn error fatal panic").split(" "));
|
||||
} else {
|
||||
ui->log_level->addItems({"debug", "info", "warning", "none"});
|
||||
}
|
||||
|
||||
ui->socks_ip->setText(NekoRay::dataStore->inbound_address);
|
||||
ui->log_level->setCurrentText(NekoRay::dataStore->log_level);
|
||||
CACHE.custom_inbound = NekoRay::dataStore->custom_inbound;
|
||||
@@ -68,13 +78,6 @@ DialogBasicSettings::DialogBasicSettings(QWidget *parent)
|
||||
C_EDIT_JSON_ALLOW_EMPTY(custom_inbound)
|
||||
});
|
||||
|
||||
if (IS_NEKO_BOX) {
|
||||
ui->groupBox_mux->hide();
|
||||
ui->groupBox_http->hide();
|
||||
ui->inbound_socks_port_l->setText(ui->inbound_socks_port_l->text().replace("Socks", "Mixed"));
|
||||
ui->hlayout_l2->addWidget(ui->groupBox_log);
|
||||
}
|
||||
|
||||
// Style
|
||||
if (IS_NEKO_BOX) {
|
||||
ui->connection_statistics_box->setDisabled(true);
|
||||
|
||||
Reference in New Issue
Block a user