Ignore empty color strings to prevent xsession errors (#864)
Fixes #863
This commit is contained in:
parent
28ed5c1c30
commit
fd96fc6d2e
@ -87,8 +87,8 @@ class Module(SettingsBase):
|
|||||||
if "name" not in self.output:
|
if "name" not in self.output:
|
||||||
self.output["name"] = self.__name__
|
self.output["name"] = self.__name__
|
||||||
self.output["instance"] = str(id(self))
|
self.output["instance"] = str(id(self))
|
||||||
if (self.output.get("color", "") or "").lower() == "#ffffff":
|
if (self.output.get("color", "") or "").lower() in ("", "#ffffff"):
|
||||||
del self.output["color"]
|
self.output.pop("color", None)
|
||||||
if self.hints:
|
if self.hints:
|
||||||
for key, val in self.hints.items():
|
for key, val in self.hints.items():
|
||||||
if key not in self.output:
|
if key not in self.output:
|
||||||
|
Loading…
Reference in New Issue
Block a user