From e2b2a2e84caf12f343352a983cdc5e424990bf80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B6=9B?= Date: Thu, 19 Oct 2023 15:42:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E7=BD=91=E7=BA=BF=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B?= =?UTF-8?q?,=E9=85=8D=E7=BD=AE=E7=BD=91=E7=BB=9C=E4=B8=BA=E5=9B=BA?= =?UTF-8?q?=E5=AE=9AIP=E5=90=8E,=E7=BD=91=E7=BB=9C=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E8=BF=98=E4=BC=9A=E6=98=BE=E7=A4=BA=E8=BF=9E=E6=8E=A5=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0003-fix-network-connection-status.patch | 45 ++++++++++++++++++++++++ found-control-center.spec | 11 ++++-- 2 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 0003-fix-network-connection-status.patch diff --git a/0003-fix-network-connection-status.patch b/0003-fix-network-connection-status.patch new file mode 100644 index 0000000..eb63f39 --- /dev/null +++ b/0003-fix-network-connection-status.patch @@ -0,0 +1,45 @@ +From 2326333997609ceb788211c7e2f7630323665041 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E5=BC=A0=E6=B6=9B?= +Date: Thu, 19 Oct 2023 14:43:10 +0800 +Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=B8=8D=E8=BF=9E?= + =?UTF-8?q?=E6=8E=A5=E7=BD=91=E7=BA=BF=E7=9A=84=E6=83=85=E5=86=B5=E4=B8=8B?= + =?UTF-8?q?,=E9=85=8D=E7=BD=AE=E7=BD=91=E7=BB=9C=E4=B8=BA=E5=9B=BA?= + =?UTF-8?q?=E5=AE=9AIP=E5=90=8E,=E7=BD=91=E7=BB=9C=E5=9B=BE=E6=A0=87?= + =?UTF-8?q?=E8=BF=98=E4=BC=9A=E6=98=BE=E7=A4=BA=E8=BF=9E=E6=8E=A5=E7=8A=B6?= + =?UTF-8?q?=E6=80=81?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + panels/network/connection-editor/net-connection-editor.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +diff --git a/panels/network/connection-editor/net-connection-editor.c b/panels/network/connection-editor/net-connection-editor.c +index bb1a4ab..91a63b4 100644 +--- a/panels/network/connection-editor/net-connection-editor.c ++++ b/panels/network/connection-editor/net-connection-editor.c +@@ -141,6 +141,9 @@ updated_connection_cb (GObject *source_object, + + self = user_data; + update_complete (self, success); ++ ++ if (!NM_IS_DEVICE_ETHERNET (self->device) || !nm_device_ethernet_get_carrier (NM_DEVICE_ETHERNET (self->device))) ++ return; + + connection = net_device_get_find_connection (self->client, self->device); + if (connection != NULL) +@@ -174,6 +177,10 @@ added_connection_cb (GObject *source_object, + + self = user_data; + update_complete (self, success); ++ ++ if (!NM_IS_DEVICE_ETHERNET (self->device) || !nm_device_ethernet_get_carrier (NM_DEVICE_ETHERNET (self->device))) ++ return; ++ + connection = net_device_get_find_connection (self->client, self->device); + if (connection != NULL) + { +-- +2.30.2 + diff --git a/found-control-center.spec b/found-control-center.spec index 0689b62..37f7ab5 100644 --- a/found-control-center.spec +++ b/found-control-center.spec @@ -9,15 +9,16 @@ Name: found-control-center Version: 3.38.4 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Utilities to configure the GNOME desktop License: GPLv2+ and CC-BY-SA URL: http://www.gnome.org Source0: %{name}-%{version}.tar.gz -Patch0: 0001-trun-on-large-text-block-time.patch -Patch0: 0002-remove-some-files.patch +Patch0: 0001-trun-on-large-text-block-time.patch +Patch1: 0002-remove-some-files.patch +Patch2: 0003-fix-network-connection-status.patch BuildRequires: pkgconfig(accountsservice) BuildRequires: desktop-file-utils @@ -175,6 +176,10 @@ The %{name}-data package contains libraries and header files for developing appl %{_datadir}/pkgconfig/gnome-keybindings.pc %changelog +* Thu Oct 19 2023 张涛 - 3.38.4-5 +- fix: 修复不连接网线的情况下,配置网络为固定IP后,网络图标还会显示连接状态 +- add patch: 0003-fix-network-connection-status.patch + * Thu Oct 19 2023 张涛 - 3.38.4-4 - fix: 移除多余的文件和代码 - add patch: 0002-remove-some-files.patch -- Gitee