Skip to content

Commit

Permalink
Fix #530 - Avoid duplicating hidden idevices
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelMayoSdweb authored and ignaciogros committed Nov 19, 2020
1 parent 96e2dbe commit 65aff4d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions exe/jsui/idevicepane.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ def translateOldHidingIdevicesMechanism(self):
visibility_config=None
tohide=False if visibility_config == '1' else True
if tohide:
self.config.hiddeniDevices.append(lower_title)
if lower_title not in self.config.hiddeniDevices:
self.config.hiddeniDevices.append(lower_title)
self.config.configParser.set('idevices', lower_title, '0')

self.ideviceStore.addIdevice(idevice)
if modified:
self.ideviceStore.save()
Expand Down

0 comments on commit 65aff4d

Please sign in to comment.