This commit is contained in:
arm64v8a
2023-04-09 13:37:14 +09:00
parent d6de7e4aff
commit caca5a59f6
5 changed files with 14 additions and 8 deletions

View File

@@ -40,8 +40,7 @@ func setupCore() {
// core setup // core setup
os.Setenv("v2ray.conf.geoloader", "memconservative") os.Setenv("v2ray.conf.geoloader", "memconservative")
neko_log.SetupLog(50*1024, "./neko.log") neko_log.SetupLog(50*1024, "./neko.log")
_ = appLog.RegisterHandlerCreator(appLog.LogType_Console, func(lt appLog.LogType, _ = appLog.RegisterHandlerCreator(appLog.LogType_Console, func(lt appLog.LogType, options appLog.HandlerCreatorOptions) (commonLog.Handler, error) {
options appLog.HandlerCreatorOptions) (commonLog.Handler, error) {
return commonLog.NewLogger(func() commonLog.Writer { return commonLog.NewLogger(func() commonLog.Writer {
return &v2rayLogWriter{} return &v2rayLogWriter{}
}), nil }), nil

View File

@@ -234,8 +234,8 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<source>Settings</source> <source>Core Options</source>
<translation type="unfinished">تنظیمات</translation> <translation type="unfinished"></translation>
</message> </message>
</context> </context>
<context> <context>

View File

@@ -228,8 +228,8 @@
<translation> uTLS </translation> <translation> uTLS </translation>
</message> </message>
<message> <message>
<source>Settings</source> <source>Core Options</source>
<translation></translation> <translation></translation>
</message> </message>
</context> </context>
<context> <context>

View File

@@ -391,7 +391,7 @@ void DialogBasicSettings::on_inbound_auth_clicked() {
void DialogBasicSettings::on_core_settings_clicked() { void DialogBasicSettings::on_core_settings_clicked() {
auto w = new QDialog(this); auto w = new QDialog(this);
w->setWindowTitle(software_core_name + " settings"); w->setWindowTitle(software_core_name + " Core Options");
auto layout = new QGridLayout; auto layout = new QGridLayout;
w->setLayout(layout); w->setLayout(layout);
// //

View File

@@ -590,10 +590,17 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item> <item>
<widget class="QPushButton" name="core_settings"> <widget class="QPushButton" name="core_settings">
<property name="text"> <property name="text">
<string>Settings</string> <string>Core Options</string>
</property> </property>
</widget> </widget>
</item> </item>