Skip to content

Commit ab9d7b3

Browse files
ut003640deepin-bot[bot]
authored andcommitted
fix: auto scan when in the wireless page
auto scan when in the wireless page PMS: BUG-286941
1 parent d59f3e2 commit ab9d7b3

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

dcc-network/qml/PageWirelessDevice.qml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 - 2027 UnionTech Software Technology Co., Ltd.
1+
// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd.
22
// SPDX-License-Identifier: GPL-3.0-or-later
33
import QtQuick 2.15
44
import QtQuick.Controls 2.15
@@ -271,6 +271,18 @@ DccObject {
271271
"bold": true
272272
})
273273
text: dccObj.displayName
274+
275+
Timer {
276+
id: refreshTimer
277+
interval: 60000 // 一分钟间隔
278+
running: true
279+
repeat: true
280+
triggeredOnStart: true
281+
onTriggered: {
282+
// 定期扫描网络
283+
dccData.exec(NetManager.RequestScan, root.netItem.id, {})
284+
}
285+
}
274286
}
275287
onParentItemChanged: {
276288
if (parentItem) {

0 commit comments

Comments
 (0)