fix: 设备选择操作不触发UDP发现,消除勾选延迟
This commit is contained in:
parent
17a0c35a1d
commit
9b0e1eaa3d
@ -5055,7 +5055,10 @@ func selectedURL(path string, ids []string) string {
|
||||
}
|
||||
|
||||
func (u *UI) deviceOverviewPageData(r *http.Request, selectedIDs []string, errMsg string) PageData {
|
||||
u.ensureDevicesLoaded()
|
||||
// Skip discovery when just toggling selection (device_id in query).
|
||||
if len(r.URL.Query()["device_id"]) == 0 && len(r.URL.Query()["selected"]) == 0 {
|
||||
u.ensureDevicesLoaded()
|
||||
}
|
||||
devices := u.registry.GetDevices()
|
||||
rows := make([]DeviceOverviewRow, 0, len(devices))
|
||||
for _, dev := range devices {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user