diff --git a/dcc-network/qml/SystemProxyConfigItem.qml b/dcc-network/qml/SystemProxyConfigItem.qml index 59a07af9..18cc5169 100644 --- a/dcc-network/qml/SystemProxyConfigItem.qml +++ b/dcc-network/qml/SystemProxyConfigItem.qml @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd. // SPDX-License-Identifier: GPL-3.0-or-later import QtQuick 2.15 import QtQuick.Controls 2.15 @@ -14,7 +14,7 @@ import org.deepin.dcc.network 1.0 DccObject { id: root property var config: null - property bool hasAuth: config.auth + property bool hasAuth: !!(config && config.auth) property bool hasUrl: false property string errorKey: ""