Revert that and instead make the Terminal usage of the options object be more optional
This commit is contained in:
parent
f9e5a69c71
commit
bdac9e620a
@ -411,8 +411,6 @@ class ConfigBase(Borg):
|
||||
self.layouts = {}
|
||||
for layout in DEFAULTS['layouts']:
|
||||
self.layouts[layout] = copy(DEFAULTS['layouts'][layout])
|
||||
if self.command_line_options is None:
|
||||
self.command_line_options = {}
|
||||
|
||||
def defaults_to_configspec(self):
|
||||
"""Convert our tree of default values into a ConfigObj validation
|
||||
|
@ -1050,10 +1050,10 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
|
||||
self.vte.grab_focus()
|
||||
|
||||
options = self.config.options_get()
|
||||
if options.command:
|
||||
if options and options.command:
|
||||
command = options.command
|
||||
options.command = None
|
||||
elif options.execute:
|
||||
elif options and options.execute:
|
||||
command = options.execute
|
||||
options.execute = None
|
||||
elif self.config['use_custom_command']:
|
||||
@ -1220,8 +1220,9 @@ for %s (%s)' % (name, urlplugin.__class__.__name__))
|
||||
dbg(layout)
|
||||
if layout.has_key('command') and layout['command'] != '':
|
||||
options = self.config.options_get()
|
||||
options.command = layout['command']
|
||||
self.config.options_set(options)
|
||||
if options:
|
||||
options.command = layout['command']
|
||||
self.config.options_set(options)
|
||||
|
||||
# There now begins a great list of keyboard event handlers
|
||||
def key_zoom_in(self):
|
||||
|
Loading…
Reference in New Issue
Block a user