Remove inconsistent ShellPowerline.theme_option attribute
Other overrides are accessed via ShellPowerline.args.
This commit is contained in:
parent
0898a692e9
commit
696793a884
|
@ -8,7 +8,6 @@ from powerline.lib.dict import mergedicts
|
||||||
class ShellPowerline(Powerline):
|
class ShellPowerline(Powerline):
|
||||||
def init(self, args, **kwargs):
|
def init(self, args, **kwargs):
|
||||||
self.args = args
|
self.args = args
|
||||||
self.theme_option = args.theme_option
|
|
||||||
super(ShellPowerline, self).init(args.ext[0], args.renderer_module, **kwargs)
|
super(ShellPowerline, self).init(args.ext[0], args.renderer_module, **kwargs)
|
||||||
|
|
||||||
def load_main_config(self):
|
def load_main_config(self):
|
||||||
|
@ -19,8 +18,8 @@ class ShellPowerline(Powerline):
|
||||||
|
|
||||||
def load_theme_config(self, name):
|
def load_theme_config(self, name):
|
||||||
r = super(ShellPowerline, self).load_theme_config(name)
|
r = super(ShellPowerline, self).load_theme_config(name)
|
||||||
if self.theme_option and name in self.theme_option:
|
if self.args.theme_option and name in self.args.theme_option:
|
||||||
mergedicts(r, self.theme_option[name])
|
mergedicts(r, self.args.theme_option[name])
|
||||||
return r
|
return r
|
||||||
|
|
||||||
def get_config_paths(self):
|
def get_config_paths(self):
|
||||||
|
|
Loading…
Reference in New Issue