Skip to content
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.

Commit

Permalink
You can revert things seperately now.
Browse files Browse the repository at this point in the history
Also, pressing "Get privacy" will now revert everything first to prevent any weird stuff happening and then apply the privacy stuff.
  • Loading branch information
10se1ucgo committed Aug 24, 2015
1 parent 1afd3e4 commit 27a841b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ def about(self, event):
wx.AboutBox(aboutpg)

def goprivate(self, event):
print "Reverting before setting privacy stuff. Ignore everything below"
self.revert(event=None) # Revert first so that the latest settings can be applied and old ones removed.
print "Finished reverting. Everything above can be ignored."
print "----------------------------------------------------------------------"
# Disable buttons
self.okbutton.Disable()
self.revertbutton.Disable()
Expand Down Expand Up @@ -182,10 +186,14 @@ def revert(self, event):
self.okbutton.Disable()
self.revertbutton.Disable()
try:
modifyserviceregs(0x0000003)
modifytelemetryregs("1")
modifyhosts(extra=False, undo=True)
blockips(undo=True)
if self.servicebox.IsChecked():
modifyserviceregs(0x0000003)
if self.telemetrybox.IsChecked():
modifytelemetryregs("1")
if self.hostbox.IsChecked() or self.extrahostbox.IsChecked():
modifyhosts(extra=False, undo=True)
if self.ipbox.IsChecked():
blockips(undo=True)
finally:
self.okbutton.Enable()
self.revertbutton.Enable()
Expand Down

0 comments on commit 27a841b

Please sign in to comment.