Skip to content

Commit 71e19d7

Browse files
committed
fix: auto scan when in the wireless page
auto scan when in the wireless page PMS: BUG-286941
1 parent 3a921bd commit 71e19d7

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

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, model.item.id, {})
284+
}
285+
}
274286
}
275287
onParentItemChanged: {
276288
if (parentItem) {

0 commit comments

Comments
 (0)