Skip to content

Commit

Permalink
GhIDA Python 3 fixed EnableField
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Marcelli committed Dec 16, 2020
1 parent a0a43ca commit 3eabe8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ghida_plugin/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def OnFormChange(self, fid):
self.EnableField(self.GhidraaasURL, False)

# USE GHIDRAAAS OPTION
if fid == USE_GHIDRAAAS_OPTION_CONST:
if fid == self.GRe.id:
if self.ghidraaas_selected:
self.EnableField(self.GhidraInstallationPath, True)
self.EnableField(self.GhidraaasURL, False)
Expand All @@ -202,14 +202,14 @@ def OnFormChange(self, fid):
self.ghidraaas_selected = True

# SAVE / LOAD CACHE
if fid == SAVE_CACHE_OPTION_CONST:
if fid == self.GRe2.id:
if self.save_cache:
self.save_chache = False
else:
self.save_cache = True

# DO NOT SHOW DIALOG
if fid == DO_NOT_SHOW_DIALOG_CONST:
if fid == self.GRe1.id:
if self.show_dialog:
self.show_dialog = False
else:
Expand Down

0 comments on commit 3eabe8c

Please sign in to comment.