397 self.tr("{0} (0x{1:04x}/0x{2:04x})", |
397 self.tr("{0} (0x{1:04x}/0x{2:04x})", |
398 "description, VId, PId").format( |
398 "description, VId, PId").format( |
399 desc, vid, pid) |
399 desc, vid, pid) |
400 for vid, pid, desc in newUnknownDevices]), |
400 for vid, pid, desc in newUnknownDevices]), |
401 BugAddress), |
401 BugAddress), |
402 E5MessageBox.StandardButtons( |
402 E5MessageBox.Ignore | E5MessageBox.Ok |
403 E5MessageBox.Ignore | |
|
404 E5MessageBox.Ok |
|
405 ) |
|
406 ) |
403 ) |
407 if button == E5MessageBox.Ignore: |
404 if button == E5MessageBox.Ignore: |
408 ignoredUnknown = list(ignoredUnknown | newUnknownDevices) |
405 ignoredUnknown = list(ignoredUnknown | newUnknownDevices) |
409 Preferences.setMicroPython("IgnoredUnknownDevices", |
406 Preferences.setMicroPython("IgnoredUnknownDevices", |
410 ignoredUnknown) |
407 ignoredUnknown) |