mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 21:14:37 +03:00
add front_proxy_clear button
This commit is contained in:
@@ -298,6 +298,10 @@ For NekoBox, this rewrites the underlying(localhost) DNS in VPN mode, normal mod
|
|||||||
<source>None</source>
|
<source>None</source>
|
||||||
<translation type="unfinished">هیچ یک</translation>
|
<translation type="unfinished">هیچ یک</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Clear</source>
|
||||||
|
<translation type="unfinished">پاک کردن</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>DialogEditProfile</name>
|
<name>DialogEditProfile</name>
|
||||||
|
|||||||
@@ -298,6 +298,10 @@ For NekoBox, this rewrites the underlying(localhost) DNS in VPN mode, normal mod
|
|||||||
<source>None</source>
|
<source>None</source>
|
||||||
<translation>无</translation>
|
<translation>无</translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Clear</source>
|
||||||
|
<translation>清除</translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>DialogEditProfile</name>
|
<name>DialogEditProfile</name>
|
||||||
@@ -1103,7 +1107,7 @@ This needs to be run NekoBox with administrator privileges.</source>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Add profile from clipboard</source>
|
<source>Add profile from clipboard</source>
|
||||||
<translation>从剪切板添加</translation>
|
<translation>从剪贴板添加</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>Debug Info</source>
|
<source>Debug Info</source>
|
||||||
|
|||||||
@@ -36,6 +36,10 @@ DialogEditGroup::DialogEditGroup(const std::shared_ptr<NekoGui::Group> &ent, QWi
|
|||||||
|
|
||||||
CACHE.front_proxy = ent->front_proxy_id;
|
CACHE.front_proxy = ent->front_proxy_id;
|
||||||
refresh_front_proxy();
|
refresh_front_proxy();
|
||||||
|
connect(ui->front_proxy_clear, &QPushButton::clicked, this, [=] {
|
||||||
|
CACHE.front_proxy = -1;
|
||||||
|
refresh_front_proxy();
|
||||||
|
});
|
||||||
|
|
||||||
connect(ui->copy_links, &QPushButton::clicked, this, [=] {
|
connect(ui->copy_links, &QPushButton::clicked, this, [=] {
|
||||||
QStringList links;
|
QStringList links;
|
||||||
|
|||||||
@@ -84,13 +84,6 @@
|
|||||||
</item>
|
</item>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
|
||||||
<widget class="QPushButton" name="front_proxy">
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="front_proxy_l">
|
<widget class="QLabel" name="front_proxy_l">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
@@ -98,6 +91,30 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="2" column="1">
|
||||||
|
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="front_proxy">
|
||||||
|
<property name="text">
|
||||||
|
<string notr="true"/>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QPushButton" name="front_proxy_clear">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Clear</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -173,6 +190,17 @@
|
|||||||
<header>ui/widget/MyLineEdit.h</header>
|
<header>ui/widget/MyLineEdit.h</header>
|
||||||
</customwidget>
|
</customwidget>
|
||||||
</customwidgets>
|
</customwidgets>
|
||||||
|
<tabstops>
|
||||||
|
<tabstop>name</tabstop>
|
||||||
|
<tabstop>type</tabstop>
|
||||||
|
<tabstop>front_proxy</tabstop>
|
||||||
|
<tabstop>front_proxy_clear</tabstop>
|
||||||
|
<tabstop>manually_column_width</tabstop>
|
||||||
|
<tabstop>archive</tabstop>
|
||||||
|
<tabstop>url</tabstop>
|
||||||
|
<tabstop>copy_links</tabstop>
|
||||||
|
<tabstop>copy_links_nkr</tabstop>
|
||||||
|
</tabstops>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections>
|
<connections>
|
||||||
<connection>
|
<connection>
|
||||||
|
|||||||
Reference in New Issue
Block a user