diff options
author | 10se1ucgo <hammaadu1@gmail.com> | 2015-08-24 03:25:43 +0300 |
---|---|---|
committer | 10se1ucgo <hammaadu1@gmail.com> | 2015-08-24 03:25:43 +0300 |
commit | 27a841b6736ce1bb1d81b2a1fc3870b2bb501f6a (patch) | |
tree | 48fa88cabb9fb8611aebaa727d46f3e70674e7eb | |
parent | 1afd3e4c30aad2b9580e239ba7d1d52ec4f09e37 (diff) |
You can revert things seperately now.v2.2
Also, pressing "Get privacy" will now revert everything first to prevent any weird stuff happening and then apply the privacy stuff.
-rw-r--r-- | run.py | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -148,6 +148,10 @@ class MainFrame(wx.Frame): 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() @@ -182,10 +186,14 @@ class MainFrame(wx.Frame): 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() |