Skip to content

Commit

Permalink
Fix TypeError in reconfigure() of terminal.py (line 753)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tinlizard committed Oct 24, 2024
1 parent fa89055 commit a8c7043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terminatorlib/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a8c7043

Please sign in to comment.