This commit is contained in:
arm64v8a
2023-01-22 17:20:32 +09:00
parent 5e22651647
commit 8fa966aba4
3 changed files with 108 additions and 80 deletions

View File

@@ -81,10 +81,8 @@ void EditCustom::onStart(QSharedPointer<NekoRay::ProxyEntity> _ent) {
if (preset_core == "internal") { if (preset_core == "internal") {
ui->core->hide(); ui->core->hide();
ui->core_l->setText(tr("Outbound JSON, please read the documentation.")); ui->core_l->setText(tr("Outbound JSON, please read the documentation."));
ui->command->hide(); ui->w_ext1->hide();
ui->command_l->hide(); ui->w_ext2->hide();
ui->config_suffix->hide();
ui->config_suffix_l->hide();
} }
// Preview // Preview

View File

@@ -46,7 +46,20 @@
</layout> </layout>
</item> </item>
<item> <item>
<widget class="QWidget" name="w_ext1" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_2"> <layout class="QHBoxLayout" name="horizontalLayout_2">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item> <item>
<widget class="QLabel" name="command_l"> <widget class="QLabel" name="command_l">
<property name="text"> <property name="text">
@@ -91,9 +104,23 @@
</widget> </widget>
</item> </item>
</layout> </layout>
</widget>
</item> </item>
<item> <item>
<widget class="QWidget" name="w_ext2" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_3"> <layout class="QHBoxLayout" name="horizontalLayout_3">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item> <item>
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="toolTip"> <property name="toolTip">
@@ -128,6 +155,7 @@
</widget> </widget>
</item> </item>
</layout> </layout>
</widget>
</item> </item>
<item> <item>
<widget class="QTextEdit" name="config_simple"> <widget class="QTextEdit" name="config_simple">

View File

@@ -1340,7 +1340,9 @@ void MainWindow::show_log_impl(const QString &log) {
} }
} }
#define ADD_TO_CURRENT_ROUTE(a, b) NekoRay::dataStore->routing->a = (SplitLines(NekoRay::dataStore->routing->a) << (b)).join("\n"); #define ADD_TO_CURRENT_ROUTE(a, b) \
NekoRay::dataStore->routing->a = (SplitLines(NekoRay::dataStore->routing->a) << (b)).join("\n"); \
NekoRay::dataStore->routing->Save();
void MainWindow::on_masterLogBrowser_customContextMenuRequested(const QPoint &pos) { void MainWindow::on_masterLogBrowser_customContextMenuRequested(const QPoint &pos) {
QMenu *menu = ui->masterLogBrowser->createStandardContextMenu(); QMenu *menu = ui->masterLogBrowser->createStandardContextMenu();