From a8c7043fd2f4ac9d8f7fa4c5cc7166a8f21a13b2 Mon Sep 17 00:00:00 2001 From: tinlizard Date: Thu, 24 Oct 2024 12:45:47 +0200 Subject: [PATCH] Fix TypeError in reconfigure() of terminal.py (line 753) Resolved a bug where `self.bgcolor.alpha` expected a number but received a string, causing a TypeError. The issue was traced to background darkness configuration handling. --- terminatorlib/terminal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index 2aaf58d7..78b48e71 100644 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -750,7 +750,7 @@ def reconfigure(self, _widget=None): self.bgcolor.parse(self.config['background_color']) if self.config['background_type'] in ('transparent', 'image'): - self.bgcolor.alpha = self.config['background_darkness'] + self.bgcolor.alpha = float(self.config['background_darkness']) else: self.bgcolor.alpha = 1