Skip to content

Commit

Permalink
Fix #530 - FPD devices no longer hidden by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelMayoSdweb authored and ignaciogros committed Nov 19, 2020
1 parent c575992 commit 96e2dbe
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions exe/jsui/idevicepane.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,15 @@ def translateOldHidingIdevicesMechanism(self):
if idevice not in idevices:
modified = True
lower_title = idevice._title.lower()
self.config.hiddeniDevices.append(lower_title)
self.config.configParser.set('idevices', lower_title, '0')
try:
visibility_config=self.config.configParser.get('idevices',lower_title)
except:
visibility_config=None
tohide=False if visibility_config == '1' else True
if tohide:
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 Expand Up @@ -212,6 +219,8 @@ def render_POST(self, request=None):
self.config.configParser.delete('idevices', lower_title)
if category == 'Experimental':
self.config.configParser.set('idevices', lower_title, '1')
if category == 'FPD':
self.config.configParser.set('idevices', lower_title, '1')
except:
pass
if not visible:
Expand Down

0 comments on commit 96e2dbe

Please sign in to comment.