Changeset d2fc31ed72d9…
Parent 6819f7204ee6…
by
Changes to one file · Browse files at d2fc31ed72d9 Showing diff from parent 6819f7204ee6 Diff from another changeset...
|
@@ -653,8 +653,6 @@ self.ovenable.connect('toggled', self.ovenable_toggled)
self.lclonly = gtk.CheckButton(_('Local disks only'))
hbox.pack_start(self.lclonly, False, False, 2)
- self.ovdebug = gtk.CheckButton(_('Enable debug logging'))
- hbox.pack_start(self.ovdebug, False, False, 2)
table = gtk.Table(2, 2, False)
ovcvbox.pack_start(table, False, False, 2)
@@ -691,9 +689,6 @@ vbox.pack_start(gtk.Label(), True, True, 2)
vbox.pack_start(descframe, False, False, 2)
- self.cmdebug = gtk.CheckButton(_('Enable debug logging'))
- cmcvbox.pack_start(self.cmdebug, False, False, 2)
-
lbl = gtk.Label(_('Promote menu items to the top menu'))
cmcvbox.pack_start(lbl, False, False, 2)
@@ -719,11 +714,6 @@ self.lclonly.connect('toggled', self.dirty_event)
self.lclonly.connect('focus-in-event', self.set_help,
desctext.get_buffer(), tooltip)
- tooltip = _('Enable the overlay code to emit debug messages'
- ' that the TortoiseHg tracelog application can receive.')
- self.ovdebug.connect('toggled', self.dirty_event)
- self.ovdebug.connect('focus-in-event', self.set_help,
- desctext.get_buffer(), tooltip)
tooltip = _('A list of semicolon (;) separated paths that the'
' overlays will respect. This include filter is applied'
' after the local disk check. If unspecified, the default'
@@ -739,20 +729,13 @@ self.ovexclude.connect('changed', self.dirty_event)
self.ovexclude.connect('focus-in-event', self.set_help,
desctext.get_buffer(), tooltip)
- tooltip = _('Enable the context menu code to emit debug messages'
- ' that the TortoiseHg tracelog application can receive.')
- self.cmdebug.connect('toggled', self.dirty_event)
- self.cmdebug.connect('focus-in-event', self.set_help,
- desctext.get_buffer(), tooltip)
self.load_shell_configs()
def load_shell_configs(self):
includepath = ''
excludepath = ''
overlayenable = True
- overlaydebug = False
localdisks = False
- cmenudebug = False
promoteditems = 'commit'
try:
from _winreg import HKEY_CURRENT_USER, OpenKey, QueryValueEx
@@ -762,14 +745,10 @@ except EnvironmentError: pass
try: localdisks = QueryValueEx(hkey, 'LocalDisksOnly')[0] in t
except EnvironmentError: pass
- try: overlaydebug = QueryValueEx(hkey, 'OverlayDebug')[0] in t
- except EnvironmentError: pass
try: includepath = QueryValueEx(hkey, 'IncludePath')[0]
except EnvironmentError: pass
try: excludepath = QueryValueEx(hkey, 'ExcludePath')[0]
except EnvironmentError: pass
- try: cmenudebug = QueryValueEx(hkey, 'ContextMenuDebug')[0] in t
- except EnvironmentError: pass
try: promoteditems = QueryValueEx(hkey, 'PromotedItems')[0]
except EnvironmentError: pass
except (ImportError, WindowsError):
@@ -777,10 +756,8 @@
self.ovenable.set_active(overlayenable)
self.lclonly.set_active(localdisks)
- self.ovdebug.set_active(overlaydebug)
self.ovinclude.set_text(includepath)
self.ovexclude.set_text(excludepath)
- self.cmdebug.set_active(cmenudebug)
promoted = [pi.strip() for pi in promoteditems.split(',')]
for cmd, check in self.cmptoggles.iteritems():
check.set_active(cmd in promoted)
@@ -788,10 +765,8 @@ def save_shell_configs(self):
overlayenable = self.ovenable.get_active() and '1' or '0'
localdisks = self.lclonly.get_active() and '1' or '0'
- overlaydebug = self.ovdebug.get_active() and '1' or '0'
includepath = self.ovinclude.get_text()
excludepath = self.ovexclude.get_text()
- cmenudebug = self.cmdebug.get_active() and '1' or '0'
promoted = []
for cmd, check in self.cmptoggles.iteritems():
if check.get_active():
@@ -801,17 +776,14 @@ hkey = CreateKey(HKEY_CURRENT_USER, r"Software\TortoiseHg")
SetValueEx(hkey, 'EnableOverlays', 0, REG_SZ, overlayenable)
SetValueEx(hkey, 'LocalDisksOnly', 0, REG_SZ, localdisks)
- SetValueEx(hkey, 'OverlayDebug', 0, REG_SZ, overlaydebug)
SetValueEx(hkey, 'IncludePath', 0, REG_SZ, includepath)
SetValueEx(hkey, 'ExcludePath', 0, REG_SZ, excludepath)
- SetValueEx(hkey, 'ContextMenuDebug', 0, REG_SZ, cmenudebug)
SetValueEx(hkey, 'PromotedItems', 0, REG_SZ, ','.join(promoted))
except ImportError:
pass
def ovenable_toggled(self, check):
self.lclonly.set_sensitive(check.get_active())
- self.ovdebug.set_sensitive(check.get_active())
self.ovinclude.set_sensitive(check.get_active())
self.ovexclude.set_sensitive(check.get_active())
self.dirty_event()
|
Loading...